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

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.

Image

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 ...

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