O'Reilly logo

Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming by Erica Sadun, Rod Strougo, Maurice Sharp

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

9. Introducing Core Data

For many apps, presentation is just one key part of their value. Without data, there is nothing to present. And for many apps, the data has to persist. In the CarValet app, so far the data has been temporary: If you or the system removes the app from memory, the data is gone; build and download, crash, or reboot, and again the data is gone. You need a way to store data between app launches.

iOS offers several ways to do this: You can put the raw objects in a file, translate the objects and relationships into XML and put that in a file, or even create your own SQLite database. No matter which way you choose, there are a bunch of routines to write, including routines for saving a car, reading a car, finding a car, deleting ...

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