November 2013
Intermediate to advanced
576 pages
19h 3m
English
When a Core Data project is first set up, there is no data in it. Although this might work for some use cases, frequently it is a requirement to have some data prepopulated in the app for the first run. In the sample app there is a custom data setup class called ICFDataStarter, which illustrates how to populate Core Data with some initial data. A #define variable is set up in MyMovies-Prefix.pch called FIRSTRUN, which can be uncommented to have the app run the logic in ICFDataStarter.
Read now
Unlock full access