O'Reilly logo

More iPhone Development with Swift: Exploring the iOS SDK by David Mark, Jayant Varma, Jeff LaMarche, Alex Horovitz, Kevin Kim

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    2

Core Data: What, Why, and How

Core Data is a framework and set of tools that allow you to save (or persist) your application’s data to an iOS device’s file system automatically. Core Data is an implementation of something called object-relational mapping (ORM). This is just a fancy way of saying that Core Data allows you to interact with your Swift objects without having to worry about how the data from those objects is stored and retrieved from persistent data stores such as relational databases (such as SQLite) or flat files.

Core Data can seem like magic when you first start using it. Core Data objects are, for the most part, handled just like plain old objects, and they seem to know how to retrieve and save themselves automagically. ...

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