准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失

时间:2022-11-13 16:09:32

Using xcode 8 beta 6.

使用xcode 8 beta 6。

Type override func prepare and I see this ..

类型覆盖功能准备,我看到这个..

准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失

But I am looking for

但我在寻找

准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失

prepare(for segue: UIStoryboardSegue, sender: AnyObject?)

准备(对于segue:UIStoryboardSegue,sender:AnyObject?)

Is this a bug? This class is a subclass of ViewController?

这是一个错误吗?这个类是ViewController的子类?

1 个解决方案

#1


12  

Maybe this was a bug in Beta 6. I'm using the GM seed, and it is working:

也许这是Beta 6中的一个错误。我正在使用GM种子,它正在工作:

准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失

BTW: In beta 6, the method was renamed to

顺便说一句:在测试版6中,该方法被重命名为

prepare(for segue: UIStoryboardSegue, sender: Any?)

#1


12  

Maybe this was a bug in Beta 6. I'm using the GM seed, and it is working:

也许这是Beta 6中的一个错误。我正在使用GM种子,它正在工作:

准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失

BTW: In beta 6, the method was renamed to

顺便说一句:在测试版6中,该方法被重命名为

prepare(for segue: UIStoryboardSegue, sender: Any?)