Core Data - how to generate CoreDataGeneratedAccessors?

后端 未结 4 1280
南方客
南方客 2021-02-15 11:29

I\'ve gone through apple dev website, google and stack overflow to figure out the basics behind CoreDataGeneratedAccessors.

I\'m using Xcode 4.2 and core data. I created

4条回答
  •  抹茶落季
    2021-02-15 12:02

    @Julien's answer was part of the solution, but here is how I solved it:

    1. Make sure that you have a to-many relationship.
    2. If you already made a class for your entity, delete it, then with your xcdatamodel open, go to Editor -> create NSManagedObject subclass, and follow the wizard.

    The class that is generated will have CoreDataGeneratedAccessors that you are looking for.

提交回复
热议问题