Iphone 我的UITableViewCell将不会删除

Iphone 我的UITableViewCell将不会删除,iphone,uitableview,ios4,nsmutablearray,Iphone,Uitableview,Ios4,Nsmutablearray,调用该方法时,我的UITableViewCell不会删除。我可以让它打印出它应该删除的单元格,但它不会删除自己,也不会从数组中删除自己 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *thisCell =

调用该方法时,我的UITableViewCell不会删除。我可以让它打印出它应该删除的单元格,但它不会删除自己,也不会从数组中删除自己

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {

    UITableViewCell *thisCell = [tableView cellForRowAtIndexPath:indexPath];
    [customData removeObjectIdenticalTo:thisCell.textLabel.text];
    NSLog(@"%@", customData);
    [thisCell removeFromSuperview];
    [tabler reloadData];
}

您需要以下内容:
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath]with RowAnimation:UITableViewRowAnimationFade]