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
.
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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.