我遇到了一个问题,我有一个带有行的 uitableview,比如说 5。如果用户选择一行,那么应该使用动画创建/插入恰好位于点击行下方的新行(正如我们在部分隐藏/取消隐藏中看到的那样) 并且在点击新插入的行时,它应该被删除。
我试过了,但它说
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 (6) 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 (0 inserted, 0 deleted).'
那么实现此功能的另一种方法应该是什么?提前致谢。