Monday, August 13, 2012

Core Data Tutorial

Introduction: 

Core Data is a schema-driven object graph management and persistence framework. Fundamentally, Core Data helps you to save model objects (in the sense of the model-view-controller design pattern) to a file and get them back again. This is similar to archiving .
Core Data is a schema-driven object graph management and persistence framework. Fundamentally, Core Data helps you to save model objects (in the sense of the model-view-controller design pattern) to a file.
  and More :

● Provides an Graphical way for managing all the changes to your model objects. This gives you automatic support for undo and redo, and for maintaining reciprocal relationships between objects.
● Allows you to keep just a subset of your model objects in memory at any given time. This is especially important on iOS where conserving memory is critical.
● Uses a schema to describe the model objects. You define the principal features of your model
classes—including the relationships between them—in a GUI-based editor. This provides a wealth of basic functionality “for free,” including setting of default values and attribute value validation.
● Allows you to maintain disjoint sets of edits of your objects. This is useful if you want to, for example, allow the user to make edits in one view that may be discarded without affecting data displayed in another view.
● Has an infrastructure for data store version and migration. This lets you easily upgrade an old version of the user’s file to the current version.

Important: Core Data is not an entry-level technology. Before starting to use Core Data, you must understand
the basics of iOS application development, including:
● How to use Xcode and Interface Builder
● Fundamental design patterns such as model-view-controller and delegation
● How to use view controllers, navigation controllers, and table views

No comments:

Post a Comment