Chapter 8: Adding Core Data to Your App
Core Data is Apple's data persistence framework. You can use this framework whenever your application needs to store data. Simple data can often be stored in UserDefaults
, but when you're handling data that is more complex, has relationships, or needs some form of efficient searching, Core Data is much better suited to your needs.
You don't need to build a very complex app or have vast amounts of data to make Core Data worth your while. Regardless of your app's size, even if it's tiny with only a couple of records, or if you're holding onto thousands of records, Core Data has your back.
In this chapter, you'll learn how to add Core Data to an existing app. The app you will build keeps track of a list of favorite movies for all members of a family. The main interface is a table view that shows a list of family members. If you tap on a family member's name, you'll see their favorite movies. Adding...