NSPersistentStoreCoordinatorは複数の永続ストアを管理します。
NSObject, NSLocking
プロパティ名 | 説明 | サンプル |
---|---|---|
persistentStores | 管理されている永続ストアを全て取得する | NSPersistentStoreCoordinator.persistentStores |
メソッド名 | 説明 | サンプル |
---|---|---|
addPersistentStore | 参照するオブジェクトの最大値を取得する | NSPersistentStoreCoordinator.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: URL, options: nil) |
persistentStore | 管理されている永続ストアをURLから取得する | NSPersistentStoreCoordinator.persistentStore(for: storeURL!) |
remove | 永続ストアを除去する | NSPersistentStoreCoordinator.remove(NSPersistentStore) |
CoreData.framework
iOS3.0以上
category | Version |
---|---|
Swift | 3.0.2 |
XCode | 8.2 |
iOS | 10.0〜 |
https://developer.apple.com/reference/coredata/nspersistentstorecoordinator