博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ios 多选删除,
阅读量:7091 次
发布时间:2019-06-28

本文共 436 字,大约阅读时间需要 1 分钟。

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/archive/2013/03/09/2951647.html

你可能感兴趣的文章
使用 lsof 查找打开的文件
查看>>
Linkwedo 提升信息在决策中的力量
查看>>
雨林木风GhostXP_SP3装机版YN11.6_2011.06更新
查看>>
我的友情链接
查看>>
vim8.0 不能用鼠标
查看>>
OpenGL进阶(十) - obj文件的导入
查看>>
剑指XX游戏(八) - 腾讯2013校园招聘技术类笔试题详解
查看>>
docker 添加基础命令
查看>>
arm7上搭建boa并进行测试cgi+html
查看>>
iptables/netfiles基本使用
查看>>
angularJS拍照
查看>>
HTML5接入与OC交互
查看>>
错误整理:No plugin found for prefix 'jetty' in the....
查看>>
端口号简介
查看>>
JCreator中不能引入servlet包的解决办法
查看>>
mysql root账户被删除
查看>>
将CentOS设置为用光盘做yum源
查看>>
终于用上了比较完美的lion 10.7.3
查看>>
【CentOS 7笔记47】,rsync文件同步工具#171205
查看>>
word2007设置标题自动编号
查看>>