ios - 准备(对于 segue : UIStoryboardSegue, 发件人 : AnyObject?)在 swift 3.0/Xcode 8 b6 中丢失

标签 ios swift xcode segue beta

使用 xcode 8 beta 6。

键入 override func prepare,我看到了这个 ..

enter image description here

但我正在寻找

enter image description here

准备(对于 segue:UIStoryboardSegue,发件人:AnyObject?)

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

最佳答案

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

prepareforsegue

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

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

关于ios - 准备(对于 segue : UIStoryboardSegue, 发件人 : AnyObject?)在 swift 3.0/Xcode 8 b6 中丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39469915/

相关文章:

ios - 如何将 Objective-C 静态扩展库链接/嵌入到 Xcode 13 项目中?

ios - 从 [Entity] 转换为无关类型的 Entity 在 CoreData 中总是失败

objective-c - 在 iOS 中使用混合模式堆叠 UIView

ios - XCode 9 本地化导出/导入不包括 NSLocalizedString() 或注释

ios - 如何使动态高度 UILabel 将其他元素推开?

iphone - 使用新版本更新时,束路径是否会更改?

ios - 从终端构建应用程序时代码设计失败

ios - 单独类中的 UIAlertViewDelegate

ios - 如何在运行时增加堆栈 View 的特定 subview 的高度?

swift - Xcode 8 安装pod后找不到代码签名