Ich habe ein neues Projekt erstellt mit Xcode 8.3.2 mit Kerndaten, die verschiedene Kerndaten Methoden aus Kerndaten Methoden mit xcode 7 erstellt haben .Können wir ersetzen App-Delegaten alte Kerndaten Methoden anstelle von neuen Kerndaten xcode 8.3 Methode
10 läuft Es ist auf iOS gibt aber Fehler beim Versuch auf iOS 9.
Neue Kerndaten Methoden wie
@synthesize persistentContainer = _persistentContainer;
- (NSPersistentContainer *)persistentContainer {
// The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it.
@synchronized (self) {
if (_persistentContainer == nil) {
_persistentContainer = [[NSPersistentContainer alloc] initWithName:@"ieMalayalam"];
[_persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *storeDescription, NSError *error) {
if (error != nil) {
// Replace this implementation with code to handle the error appropriately.
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
NSLog(@"Unresolved error %@, %@", error, error.userInfo);
abort();
}
}];
}
}
return _persistentContainer;
}
- (void)saveContext {
NSManagedObjectContext *context = self.managedObjectContext;
NSError *error = nil;
if ([context hasChanges] && ![context save:&error]) {
// Replace this implementation with code to handle the error appropriately.
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
NSLog(@"Unresolved error %@, %@", error, error.userInfo);
abort();
}
}
können wir ersetzen alte Kerndaten Methoden zur Unterstützung ios 9 & gleichen laufen 10 beide. ????? Bitte Hilfe
Nein. Das können Sie nicht tun. – phani