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.
精彩评论