Converting CarTableViewController
Using Core Data changes how data is accessed, created, deleted, and updated. To convert each part of an app, you need to identify those differences and add or change relevant code. Table 9-1 shows the differences and changes needed for CarTableViewController
.

Table 9-1 Changes for Core Data in the Cars Table View
Cars Table Change 1: Adding the Managed Object Context
The first change requires a reference to the managed object context. AppDelegate
already has one, so all the cars table controller needs is a reference. Since the managed object context is used in many methods, it is worth setting up an instance ...
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 live online training, plus books, videos, and digital content from nearly 200 publishers.