ios - Auto property synthesize will not synthesize property - 新警告 iOS8.3

标签 ios synthesize ios8.3

更新到 iOS8.3 后,我开始收到一堆在 iOS8.2 上没有的新警告。其中一个特别引起了我的注意;

@property (strong, nonatomic) IBOutlet UITableView *tableView;

这是在“.m”文件中声明的。

在 iOS8.3 中有什么变化使它成为一个警告?

Auto property synthesis will not synthesize property 'tableView'; it will be implemented by its superclass, use @dynamic to acknowledge intention

最佳答案

如果您使用的是 UITableViewController,那么 tableView 已经合成。 (即 self.tableView 是 UITableViewController 的 tableView)。

关于ios - Auto property synthesize will not synthesize property - 新警告 iOS8.3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29656294/

相关文章:

iphone - @class @synthesize 可用性

ios - 哪个最好 :calling a property by @synthesize or by using self keyword

ios - event.allTouches()?.allObjects.last

iOS 8.3 Storyboard侧边菜单

objective-c - 为什么我的整个 View 都在动画,而不仅仅是我的 UIImage View

具有丰富内容的 iOS 推送通知 - 我可以阻止通知被点击吗?

ios - Swift 中等效的 android.content.BroadcastReceiver

objective-c - "Modern"Objective-C 中的综合和 protected 实例变量?

xcode - 从一个 View Controller 导航到另一个 View Controller

ios - 如何使用swift读取iPhone文档目录中的pdf