Core Data

Core Data is a powerful data persistence solution developed by Apple to provide object-oriented storage. Core Data is an object-wrapper on top of a data store—typically a SQLite database. This allows the developer to work with objects that map to entities in the database without worrying too much about the underlying database design and queries. For apps that need business data stored, Core Data is a strong solution to meet this need.

Figure 11.1 shows an overview of the Core Data framework. The framework stores data in files. The default is SQLite database, but you can also choose to use XML or binary data. The Persistent Object Store wraps around the data file and presents a common interface to the rest of the stack. You will not ...

Get Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.