【发布时间】:2011-07-09 06:37:44
【问题描述】:
我遇到了一个问题,我有一个带有行的 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).'
那么实现此功能的其他方法应该是什么? 提前致谢。
【问题讨论】:
标签: iphone uitableview insert row nsindexpath