一、CoreData学习指引
1. 苹果官方:Core Data Programming Guide
什么是CoreData?
创建托管对象模型
初始化Core Data堆栈
提取对象
创建和修改自定义托管对象
2.Core Data在 macOS 10.12 , iOS 10.0, tvOS 10.0和watchOS 3.0中的新特性
国内比较好的CoreData学习资源:
以下资源来自:blog.csdn.net/hello_hwc
汇总目录:
http://blog.csdn.net/column/details/huangwenchen-ios-sdk.html
iOS 数据持久化之CoreData(二)堆栈建立和基本操作Demo
iOS 数据持久化之CoreData(三)NSFetchedResultsController +Demo
iOS CoreData详解(四)Faulting and Uniquing
二、CoreData对象明细
官方说明:https://developer.apple.com/reference/coredata
import CoreData.NSAtomicStore import CoreData.CoreDataDefines import CoreData.CoreDataErrors import CoreData import CoreData.NSAtomicStoreCacheNode import CoreData.NSAttributeDescription import CoreData.NSBatchDeleteRequest import CoreData.NSBatchUpdateRequest import CoreData.NSEntityDescription import CoreData.NSEntityMapping import CoreData.NSEntityMigrationPolicy import CoreData.NSExpressionDescription import CoreData.NSFetchRequest import CoreData.NSFetchRequestExpression import CoreData.NSFetchedPropertyDescription import CoreData.NSFetchedResultsController import CoreData.NSIncrementalStore import CoreData.NSIncrementalStoreNode import CoreData.NSManagedObject import CoreData.NSManagedObjectContext import CoreData.NSManagedObjectID import CoreData.NSManagedObjectModel import CoreData.NSMappingModel import CoreData.NSMergePolicy import CoreData.NSMigrationManager import CoreData.NSPersistentStore import CoreData.NSPersistentStoreCoordinator import CoreData.NSPersistentStoreRequest import CoreData.NSPersistentStoreResult import CoreData.NSPropertyDescription import CoreData.NSPropertyMapping import CoreData.NSRelationshipDescription import CoreData.NSSaveChangesRequest import Foundation extension NSCocoaError { public static var ManagedObjectValidationError: NSCocoaError { get } public static var ValidationMultipleErrorsError: NSCocoaError { get } public static var ValidationMissingMandatoryPropertyError: NSCocoaError { get } public static var ValidationRelationshipLacksMinimumCountError: NSCocoaError { get } public static var ValidationRelationshipExceedsMaximumCountError: NSCocoaError { get } public static var ValidationRelationshipDeniedDevareError: NSCocoaError { get } public static var ValidationNumberTooLargeError: NSCocoaError { get } public static var ValidationNumberTooSmallError: NSCocoaError { get } public static var ValidationDateTooLateError: NSCocoaError { get } public static var ValidationDateTooSoonError: NSCocoaError { get } public static var ValidationInvalidDateError: NSCocoaError { get } public static var ValidationStringTooLongError: NSCocoaError { get } public static var ValidationStringTooShortError: NSCocoaError { get } public static var ValidationStringPatternMatchingError: NSCocoaError { get } public static var ManagedObjectContextLockingError: NSCocoaError { get } public static var PersistentStoreCoordinatorLockingError: NSCocoaError { get } public static var ManagedObjectReferentialIntegrityError: NSCocoaError { get } public static var ManagedObjectExternalRelationshipError: NSCocoaError { get } public static var ManagedObjectMergeError: NSCocoaError { get } public static var ManagedObjectConstraintMergeError: NSCocoaError { get } public static var PersistentStoreInvalidTypeError: NSCocoaError { get } public static var PersistentStoreTypeMismatchError: NSCocoaError { get } public static var PersistentStoreIncompatibleSchemaError: NSCocoaError { get } public static var PersistentStoreSaveError: NSCocoaError { get } public static var PersistentStoreIncompvareSaveError: NSCocoaError { get } public static var PersistentStoreSaveConflictsError: NSCocoaError { get } public static var CoreDataError: NSCocoaError { get } public static var PersistentStoreOperationError: NSCocoaError { get } public static var PersistentStoreOpenError: NSCocoaError { get } public static var PersistentStoreTimeoutError: NSCocoaError { get } public static var PersistentStoreUnsupportedRequestTypeError: NSCocoaError { get } public static var PersistentStoreIncompatibleVersionHashError: NSCocoaError { get } public static var MigrationError: NSCocoaError { get } public static var MigrationCancelledError: NSCocoaError { get } public static var MigrationMissingSourceModelError: NSCocoaError { get } public static var MigrationMissingMappingModelError: NSCocoaError { get } public static var MigrationManagerSourceStoreError: NSCocoaError { get } public static var MigrationManagerDestinationStoreError: NSCocoaError { get } public static var EntityMigrationPolicyError: NSCocoaError { get } public static var SQLiteError: NSCocoaError { get } public static var InferredMappingModelError: NSCocoaError { get } public static var ExternalRecordImportError: NSCocoaError { get } }