0
我需要在任務被刪除之前更新它。我發現當這行[self.fetchedResultsController objectAtIndexPath:indexPath];
在NSFetchedResultsChangeDelete執行應用程序崩潰。核心數據刪除崩潰
case NSFetchedResultsChangeDelete:{
Task *task = [self.fetchedResultsController objectAtIndexPath:indexPath];
[self deleleReminderForTask:task];
[self checkForUpdateForTaskForDelete:task];
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
崩潰日誌:
CoreData: error: Serious application error. Exception was caught during Core Data change processing. This is usually a bug within an observer of NSManagedObjectContextObjectsDidChangeNotification. *** -[_PFBatchFaultingArray objectAtIndex:]: index (40324416) beyond bounds (1) with userInfo (null)
任何人可以幫助我解決這個問題。
感謝您的快速回復Wain – karthik