执行tableView的deleteRowsAtIndexPaths:withRowAnimation:报错怎

iOS 码拜 8年前 (2016-01-31) 972次浏览
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
执行上面这个语句会报错,信息如下,什么原因:
“”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 or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).””

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明执行tableView的deleteRowsAtIndexPaths:withRowAnimation:报错怎
喜欢 (0)
[1034331897@qq.com]
分享 (0)