본문 바로가기

Programming/iPhone, Xcode

The Data Model

About Core Data


For future reference, I've written this from Head First iPhone and iPad Development (2nd edition)


The Data Model


Works with entities that have properties called attributes.

Can be edited directly in Xcode.

Has several different data types. 



Core Data


Provides stack that manages the data so you don't have to.

Can manage different types of data.

Great for memory management and tracking changes.




Tab Bars

Each tab means a separate view.

Tabs work well with tasks that are not hierarchical.


  • Core Data is a persistence framework that offers loading, saving, versioning and undo-redo.
  • Core Data can be built on top of SQLite databases, binary files, or temporary memory.
  • The Managed Object Model defines the Entities we're going to ask Core Data to work with.
  • The Managed Object Context is our entry point to our data. It keeps track of active Managed Objects.
  • The Managed Object Context is part of the Core Data stack that handles reading and writing our data.