報(bào)錯(cuò)信息如下

原因是沒(méi)有先remove數(shù)據(jù)就調(diào)用deleteRowsAtIndexPaths方法
[self deleteRowsAtIndexPaths:@[delectIndexPath] withRowAnimation:UITableViewRowAnimationFade];
[self.dataArray removeObjectAtIndex:indexPath.row];
所以報(bào)錯(cuò).
修改后代碼為
NSIndexPath *delectIndexPath =[NSIndexPath indexPathForRow:indexPath.row inSection:0];
[self deleteRowsAtIndexPaths:@[delectIndexPath] withRowAnimation:UITableViewRowAnimationFade];
[self.dataArray removeObjectAtIndex:indexPath.row];