准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失 [英] prepare(for segue: UIStoryboardSegue, sender: AnyObject?) missing in swift 3.0/Xcode 8 b6
本文介绍了准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用xcode 8 beta 6.
Using xcode 8 beta 6.
类型覆盖功能准备,我看到了..
Type override func prepare and I see this ..
< a href =https://i.stack.imgur.com/JCpI0.png =noreferrer>
但我正在寻找
准备(对于segue:UIStoryboardSegue,发件人:AnyObject?)
prepare(for segue: UIStoryboardSegue, sender: AnyObject?)
这是一个bug?这个类是ViewController的子类吗?
Is this a bug? This class is a subclass of ViewController?
推荐答案
这可能是Beta 6中的一个错误。我正在使用GM种子,它正在工作:
Maybe this was a bug in Beta 6. I'm using the GM seed, and it is working:
BTW:在测试版6中,该方法被重命名为
BTW: In beta 6, the method was renamed to
prepare(for segue: UIStoryboardSegue, sender: Any?)
这篇关于准备(对于segue:UIStoryboardSegue,sender:AnyObject?)swift 3.0 / Xcode 8 b6中缺失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文