O'Reilly logo

iOS Cloud Development For Dummies by Neal Goldstein

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 4

Putting Core Data to Work

In This Chapter

arrow Using Core Data

arrow Figuring out fetch requests

arrow Adding, saving, and loading SharedPointOfInterest objects with Core Data

Chapter 3 is all about setting up Core Data. This chapter shows you how you can now use Core Data to manage your itinerary. Here, you move RoadTrip away from saving your itinerary in a file (the old way to do things) to storing it in Core Data (the new way to do things). Along the way, I have you add a new feature for displaying your data — displaying the points of interest in your itinerary by location. Actually, Core Data makes this little trick really easy, so it’s not much to brag about.

The image on the left in Figure 4-1 shows you the way it works now. You can see that the pre-Core Data RoadTrip allows you to create (and save) an itinerary — the places you’d like to go. After Core Data, you can see from the middle image in Figure 4-1 that I’ve added a nice location heading to the itinerary. While that is certainly stylish, the real change occurs under the covers. All those itinerary objects that actually contain the information about each point of interest in my itinerary are now managed by Core Data.

You ...

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