How can I ship my app with a pre-populated Core Data database?

后端 未结 5 1401
天涯浪人
天涯浪人 2021-02-01 08:16

My app uses Core Data and I want some default entries to be inside. What\'s best practices of how to do that?

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-01 08:43

    In iOS 5, my app was rejected if I put a database file into resource bundle. So, I have to download the database from internet instead.

提交回复
热议问题