Core Data is the model layer of your application in the broadest sense possible. It's the Model in the Model-View-Controller pattern that permeates the iOS SDK.
Core Data isn't the database of your application nor is it an API for persisting data to a database. Core Data is a framework that manages an object graph. It's as simple as that. Core Data can persist that object graph by writing it to disk, but that is not the primary goal of the framework.
Operations on core data
To Get context:
To fetch data:
To fetch data with sorting:
To add data:
To save context:
This modified text is an extract of the original Stack Overflow Documentation created by following contributors and released under CC BY-SA 3.0