實現(xiàn)代理方法就行,不需要設(shè)置其他

- (void)tableView:(UITableView*)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath*)indexPath {
? ? if(indexPath.row
? ? ? ? [dataArrayremoveObjectAtIndex:indexPath.row];
? ? ? ? [_listTableView reloadData];
? ? }
}