8. Preloading Data
Never memorize something you can look up.
Albert Einstein
In Chapter 7, “Picker Views,” you focused on configuring user interface elements bound to Core Data objects. As a result, the main functionality of Grocery Dude is now in place. This chapter will dive back into the data model as preloading default data is explained and demonstrated. There are several approaches to providing default data with an application. In some cases, it makes sense to just import data directly in code, as you’ve experienced in previous chapters. A more advanced technique is to generate a persistent store from an XML file. The resulting persistent store can then be shipped with the application and inserted as the initial persistent store before Core ...
Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.