How do I initialize a store with default data in a CoreData application?

前端 未结 4 1958
傲寒
傲寒 2020-12-02 17:41

I\'m doing an iPhone application. In this app, I just want to have a database to be used as a looked up table for values in my app. The only thing the database will do was t

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 18:18

    I racked my brain for hours attempting to solve this. What I came up with was simply not to save the database. That way, it will be initialized each time the app is opened. If you save it, it will continue to duplicate.

提交回复
热议问题