开发者

Best practice to deliver Core Data App with content?

开发者 https://www.devze.com 2023-03-06 20:10 出处:网络
Hey guys, what would you say is the best way to ship initial data with an Core Data iOS App? Is it maybe to once run the app, store the data and then insert the datafile in the build?

Hey guys,

what would you say is the best way to ship initial data with an Core Data iOS App?

Is it maybe to once run the app, store the data and then insert the datafile in the build? There 开发者_Python百科must be a better way..


I have had good experiences with loading the data into a sqlite backing in the simulator, and then bundling the resulting sqlite file with the app.

Especially for bigger datasets, first-run filling of the database is not really an option.


I've been toying around with the same problem myself, recently; and what I opted for was to store the data in the app in some easily parsable (for me) format, and parse and incorporate it on first run.

0

精彩评论

暂无评论...
验证码 换一张
取 消