在启动期间(-viewDidLoad or in storyboard)执行:self.tableView.allowsMultipleSelectionDuringEditing = NO;覆盖以支持表视图的条件编辑。如果您要返回NO某些项目,则只需要实现此功能。默认情况下,所有项目都是可编辑的。- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { // Return YES if you want the specified item to be editable. return YES;}// Override to support editing the table view.- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { //add code here for when you hit delete } }