Deploy application with dummy / source data

I have a Core Data based application that stores hierarchical data displayed using the UITableView series. To illustrate the functionality of my application for the user, I would like to pre-populate my database / application with some dummy values. This data will be available after installation on the iPhone / iPod Touch.

What is the best way to achieve this?

+3
source share
1 answer

Create data and include it in the application bundle. At the first start, copy this sqlite file to the document directory, and then again stand in the data warehouse.

, , . sqlite, , appilcation.

+1

Source: https://habr.com/ru/post/1743051/


All Articles