Detecting a Lightweight Core Data Migration

后端 未结 3 1163
走了就别回头了
走了就别回头了 2020-12-12 19:56

I\'m using Core Data\'s automatic lightweight migration successfully. However, when a particular entity gets created during a migration, I\'d like to populate it with some d

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 20:30

    What about subclassing NSManagedObject for that entity, and then overriding -awakeFromInsert:? Or are you creating this entity in other parts of your app?

提交回复
热议问题