我即将完成我的第一个 iOS 应用程序,但在从核心数据填充的表格视图中删除时遇到问题。核心数据实体有 4 个显示在单元格中的属性。我尝试遵循的所有示例都使用单个属性实体。我还有两种描述。不确定这是否对我的问题有任何影响。我的表格视图已正确填充。编辑选项可用,但一旦选择一行并触摸删除,我会收到错误,调试器在该行停止class AppDelegate: UIResponder, UIApplicationDelegate {,Xcode 输出以下内容
2016-04-25 20:00:05.739 MileageLogger[41673:17841244] *** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UITableView.m:1716
2016-04-25 20:00:05.768 MileageLogger[41673:17841244] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (14) must be equal to the number of rows contained in that section before the update (14), plus or minus the number of rows inserted …Run Code Online (Sandbox Code Playgroud)