Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming
by Maurice Sharp, Erica Sadun, Rod Strougo
Summary
In this chapter, you learned how to add data persistence in your apps. After looking at the pieces of Core Data and how they fit together, you built a data model for the car object. You added some boilerplate code for setting up the Core Data environment and then used a repeatable process to convert first the car overview list and then the detail view to use the new data format.
You completed your exploration of the basics by using NSFetchedResultsController to significantly reduce the amount of code needed to manage a table view. Along the way, you learned how to recognize some common errors and make your code a bit more readable.
The ability to save and retrieve data adds many more possibilities for the kinds of apps you can create. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access