Prefilled version of Core Data?

后端 未结 3 1426
南笙
南笙 2020-12-16 17:41

My app involves getting a large json file via the internet, and then parsing it into Core Data.

Thats fine, but how could I get the already filled version of this Co

3条回答
  •  青春惊慌失措
    2020-12-16 18:16

    The Core Data database is just a SQLite database file. You can deliver it in your main bundle and then copy it to your documents folder before associating it with your persistent store coordinator.

提交回复
热议问题