(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([[segue identifier] isEqualToString:@"showDetail"]) {
NSError *error=nil;
NSIndexPath *indexPath = [self.tableView indexPathForSelectedRow];
NSManagedObject *selectedObject = [[self fetchedResultsController] objectAtIndexPath:indexPath];
NSLog(@"Segue");
[[segue destinationViewController] setDetailItem:selectedObject];
objet = selectedObject;
[self showQuizz:selectedObject];
int num=1;
[selectedObject setValue:[NSNumber numberWithInt:num] forKey:@"fldId"];
if ([self.managedObjectContext save:&error]){
NSLog(@"fldId Not Saved");
NSLog(@"Handle the error");
NSLog(@"Unresolved Error %@, %@",error, [error userInfo]);
}
}
- 最後の NSLog の出力は次のとおりです: Unresolved Error (null), (null)
どんな助けでも大歓迎です