ios - 连接 Storyboard 和 outlet 在 xcode 5.1、ios 7.1 sdk 中不能正常工作?

标签 ios iphone objective-c xcode cocoa

有时我尝试将标签或按钮连接到类中的 socket ,但 xcode 不接受连接。

如图所示,我无法将 sotryboard 中的标签连接到导出标签 resultLabel。

enter image description here

最佳答案

确保 Storyboard 中的 viewController 已连接到您的类。

点击黄色按钮: Click on the yellow button

选择 identity inspector 选项卡并输入您的类(class)名称:

enter image description here

关于ios - 连接 Storyboard 和 outlet 在 xcode 5.1、ios 7.1 sdk 中不能正常工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24403319/

相关文章:

iphone - 为什么我会看到有关 NSAutoreleasePool 不可用的警告消息?

iphone - 如何在一次操作中从 UINavigationController 中弹出一个 View 并将其替换为另一个 View ?

iphone - 将 subview 添加到 UITableViewCell 内容 View

ios - 激活 iPhone 相机操作使我的应用程序崩溃

iphone - 应用程序终止时定位服务不会停止

ios - 我的ios应用会因为发送电子邮件而被拒绝吗?

iPhone : Implement Ole Leaves API

iphone - UITableViewController 不使用 NSMutableArray 填充 TableView

iphone - 如何替换当前打开的 FMDB 数据库并保留当前队列?

ios - 用箭头替换 GMSMapView 中的蓝点 - Swift