Xcode 4 Core Data: How to use fetched property created in Data Model editor

后端 未结 1 1615
旧时难觅i
旧时难觅i 2021-01-30 23:32

How do you implement a fetched property in Xcode 4?

Here is an example of two entities, a book and a page: \"enter

1条回答
  •  南方客
    南方客 (楼主)
    2021-01-30 23:37

    From what I've read you need to add fetched properties to the generated class yourself using the @dynamic keyword

    // In your header
    @property (nonatomic, retain) NSArray *fetchLastPage;
    
    // In your class
    @dynamic fetchLastPage;
    

    0 讨论(0)
提交回复
热议问题