nvalid update: invalid number of rows in section 0.
由于TableView中的行數(shù)和數(shù)組中的不一致造成的鳍刷,
NSIndexPath *index = [NSIndexPath indexPathForRow:indexPath inSection:0];
[self.modelArray removeObjectAtIndex:indexPath];
[self.tableView deleteRowsAtIndexPaths:@[index] withRowAnimation:UITableViewRowAnimationBottom];