Core data 核心数据行数无效错误,未插入/删除行

Core data 核心数据行数无效错误,未插入/删除行,core-data,uitableview,Core Data,Uitableview,在选择UITableViewCell时,我正在修改(但不是添加或删除)核心数据存储中的对象。但是,每当我这样做时,都会出现以下错误: CoreData: error: Serious application error. An exception was caught from the delegate of NSFetchedResultsController during a call to -controllerDidChangeContent:. Invalid update:

在选择UITableViewCell时,我正在修改(但不是添加或删除)核心数据存储中的对象。但是,每当我这样做时,都会出现以下错误:

CoreData: error: Serious application error.  An exception was caught from the delegate of 
NSFetchedResultsController during a call to -controllerDidChangeContent:.  Invalid update: 
invalid number of rows in section 0.  The number of rows contained in an existing section 
after the update (5) must be equal to the number of rows contained in that section before 
the update (5), plus or minus the number of rows inserted or deleted from that section (1 
inserted, 0 deleted) and plus or minus the number of rows moved into or out of that 
section (0 moved in, 0 moved out). with userInfo (null)

…除了我没有插入或删除任何新行之外,我只是修改了现有对象上备份该行的属性。如何修复此错误?

您是否实现了所有FRC委托方法“controllerWillChangeContent”、“didChangeObject”和“controllerDidChangeContent”?标准样板代码是否与NSFetchedResultsControllerDelegate协议参考中的一样?是。这些都在那里-来自主/详细视图的标准样板+核心数据项目模板。奇怪。-错误消息声称已为一行调用了“insertRows…”,但节中的对象数没有更改。右-告诉我。很奇怪。