我遇到了一个表格视图不一致异常,想知道一种解决方法。点击表格视图单元格附件视图,我在表格视图中显示了一个额外的单元格,想想你正在查看的行下方弹出一个控制面板。同时,对 API 的 HTTP 请求正在获取第二页数据。如果在我为控制面板设置动画时数据进入,我会崩溃。
'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (31) must be equal to the number of rows contained in that section before the update (32), plus or minus the number of rows inserted or deleted from that section (1 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'