Moving CarValet to Core Data

The best way to understand Core Data is to use it. In the rest of this chapter, you convert CarValet to use Core Data. First, you add the model and then some boilerplate code to load and access it. Next, you convert the cars table and prototype cell. Then, you update the car data view and make sure any changes are updated. Finally, you learn a better way to use Core Data with data overview tables.

Before you can do any of that, you need to add the CoreData framework to your app. Follow these steps:

1. Open the CarValet project. You can start with your final code from Chapter 8, “Table Views I: The Basics,” or use the CH09 CarValet Starter project provided with the sample code files for this chapter.

Now open the ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming 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.