###设置TableView能够多行选择,这里有2中方法能够实现代理
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { // 1.实现这一个代理方法,返回2个值 return UITableViewCellEditingStyleDelete| UITableViewCellEditingStyleInsert; }
self.tableView.allowsMultipleSelectionDuringEditing = YES;
这样,当TableView进入编辑模式的时候就会显示为多选模式。code
###PS: 另外能够自定义选中时“对号”的颜色,代码以下:ip
self.tableView.tintColor = [UIColor redColor];