由于删除行是,数据未处理完成,导致tableview更新时,数据更行不及时导致冲突
具体实现方法:
//必须添加开始更新和结束更新,中间必须删除数据
//开始更新
[self.tableView beginUpdates];
//填入数据操作
[tableView deleteRow:indexPath.row inSection:indexPath.section withRowAnimation:UITableViewRowAnimationAutomatic];
[_arrayTableCellData removeObjectAtIndex:row];
//结束更新
[self.tableView endUpdates];