O'Reilly logo

RestKit for iOS by Taras Kalapun

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

Chapter 3. Persistence with Core Data

This chapter describes how to make an application use persistence data using Core Data. For our example, we will make Database and Collection elements to be backed by Core Data in our application. We will leave Documents out of Core Data, as they are more dynamic, and by this, we will see how to deal with a hybrid environment, where some objects are backed by Core Data, and some are not.

The idea is as follows—when an application is started, we will ask RestKit to refresh information about our database and collection objects. In this procedure, RestKit will determine the changes on a server in this data, and will sync our database to those changes. We assume that the information in the web service is the most ...

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