Understanding Core Data

Your app is almost complete at this point. Every screen works as shown in the app tour. However, there is one last thing that you need to do. In Chapter 19, Getting Started with Custom UIControls, you implemented a Review Form screen, which lets the user enter a review about a particular restaurant. In the previous chapter, you implemented a Photo Filter screen, which lets the user select pictures from the photo library and add filters to them. But, there is no way at present to save either reviews or photos.

In this chapter, you will use Core Data to save reviews and photos in your app. First, you'll learn about Core Data and its different components. Next, you'll create a data model for reviews and restaurant photos and create corresponding model objects for your app. After that, you'll set up Core Data components for your app. Finally, you'll create a data manager class that acts as the interface between Core Data and the rest of your app.

By the end of this chapter, you'll understand how Core Data works. You'll also be able to set up Core Data components for your own apps, and enable an interface between your app and Core Data components using a data manager class.

The following topics will be covered:

  • Introducing Core Data
  • Implementing Core Data components for your app
  • Implementing a data manager for reviews and photos
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.172.130