ios 多选删除,

1,支持多选

    self.tableView.allowsMultipleSelectionDuringEditing = YES;

    [self.tableView setMultipleTouchEnabled:YES];

2,设置编辑状态 

[self.tableViewsetEditing:editting animated:YES];

3, 选中的效果

      NSIndexPath *myindexPath = [NSIndexPath indexPathForRow:i inSection:0];

      [self.tableView selectRowAtIndexPath:myindexPath animated:YES scrollPosition:UITableViewScrollPositionNone];

4,相关截图,

 

原文地址:https://www.cnblogs.com/guligei/p/2951647.html