iOS 5中Core Data的奇怪警告

时间:2011-11-02 23:14:39

标签: iphone core-data ios5

我在iOS5中运行我的应用程序时收到以下警告

CoreData: warning: Relationship properties should be @dynamic, not ivars (entity foo, class foo, property bar).  This will be an error in the future.

属性栏在类中声明为@dynamic。我想在它成为“未来的错误”之前解决这个问题。

1 个答案:

答案 0 :(得分:3)

您应该使用Xcode生成MO子类。您不会从IDE生成的类中看到此错误。