错误:将单元格插入节

时间:2016-04-06 02:00:55

标签: objective-c button insert row tableviewcell

'NSInternalInconsistencyException',原因:'尝试将第1行插入第0部分,但更新后第0部分只有1行'

-(void)actionAddMore:(UIButton *)sender{

[_tblTask beginUpdates];
[_tblTask insertRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:1 inSection:0]] withRowAnimation:UITableViewRowAnimationAutomatic];
[_tblTask endUpdates];

}

enter image description here

0 个答案:

没有答案
相关问题