2009-07-23 10 views

答えて

0

は、私は、このようなコードを使用if{}

0

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]; 
} 
関連する問題