O'Reilly logo

Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications by Tim Roadley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8. Pre-loading Data

Never memorize something you can look up.

Albert Einstein

In Chapter 7, you again 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 pre-loading default data is explained and demonstrated. There are several approaches to providing default data. 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 using an XML file as the default data source. The resulting persistent store can then be shipped with the application and inserted as the initial persistent store before Core ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required