coreData 学习笔记,from ios apprentice 3 MyLocations v3.3 and begining ios 8 programing with swift
- CoreData stack 包含的部分
- persistent store : 这时存储再数据库中的,我们从来不直接使用它。
- persistent store coordinator 负责reading and writing of information to the persistent store, which is the bridge between the managed object context and the persistent store.
- managed object model : database schema that represent data model.
- managed object : this class represents an entity that we wanner store in coreData. 类似于传统数据库的table ,是NSManagedObject 的子类。
- managed object context
- NSManagedObjectContext is the object that we we use to talk to CoreData, every object that needs to do something with CoreData needs to have a reference to the NSManagedObjectContext object.