以下のコードでコア データのオブジェクトを更新しようとしましたが、エラーが発生しました。
NSError *error;
NSArray *objects = [managedObjectContext executeFetchRequest:fetchRequest error:&error];
NSLog(@"objects %@",objects);
// yourIdentifyingQualifier is unique. It just grabs the first object in the array.
AllChallenge *tempChallenge = [[managedObjectContext executeFetchRequest:fetchRequest error:&error] objectAtIndex:0];
tempChallenge =[[AllChallenge alloc] init];
NSLog(@"tempchallenge >>>>> %@",tempChallenge);
// update the object
tempChallenge.status = 1;
[self.managedObjectContext save:&error];
コンパイル後、CoreData: エラー: NSManagedObject クラス 'AllChallenge' で指定された初期化子の呼び出しに失敗しました。助けてくれてありがとう。