NSManagedObject subclass outside of managed object as a normal object

后端 未结 2 1474
梦毁少年i
梦毁少年i 2021-02-05 17:49

I have an entity object Country with country name and country code. It is a subclass of NSManagedObject and I am using it with core data model to store its value to a persistent

2条回答
  •  不知归路
    2021-02-05 18:10

    Use initWithEntity:insertIntoManagedObjectContext: and pass nil for managed object context.

提交回复
热议问题