UITableViewCell的多选操作

来源:互联网 发布:matlab 输出数据 编辑:程序博客网 时间:2024/05/02 12:56

- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

{

    return UITableViewCellEditingStyleDelete | UITableViewCellEditingStyleInsert;//3


}

或者·

    self.tableview.allowsMultipleSelectionDuringEditing = YES;


- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath

{

    return UITableViewCellEditingStyleDelete;


}






0 0
原创粉丝点击