0
これを行う他の方法はありますか?削除行のUITableView問題
これを行う他の方法はありますか?削除行のUITableView問題
は、私は、このようなコードを使用if{}
前if{}
ブロックに
または[self.tableView beginUpdates];
でなければなりません[self.tableView endUpdates];
がなければならないことだと思うし、それがうまく働いた:
if (editingStyle == UITableViewCellEditingStyleDelete)
{
[self.tableView beginUpdates];
//Remove the item from the array (i.e. update the data source).
[self.arrayList removeObjectAtIndex:indexPath.row];
//Delete the row from the table.
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
[self.tableView endUpdates];
}