UITableViewCell的多选操作

版权声明:本文为博主原创文章。未经博主同意不得转载,转载需加上原博客链接。 https://blog.csdn.net/panyong4627/article/details/37902207

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

{

    return UITableViewCellEditingStyleDelete | UITableViewCellEditingStyleInsert;//3


}

或者·

    self.tableview.allowsMultipleSelectionDuringEditing = YES;


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

{

    return UITableViewCellEditingStyleDelete;


}






猜你喜欢

转载自www.cnblogs.com/ldxsuanfa/p/10802137.html