在cell上添加长按手势,并给手势添加tag值
2016-07-02 09:00
204 查看
1、在cell上添加长按手势;
UILongPressGestureRecognizer *longPressGR = [[UILongPressGestureRecognizer
alloc]
initWithTarget:self
action:@selector(longPress:)];
longPressGR.minimumPressDuration =
0.5;
[cell addGestureRecognizer:longPressGR];
2、将手势添加到cell上之后在设置手势的tag值;
longPressGR.view.tag = indexPath.row;
UILongPressGestureRecognizer *longPressGR = [[UILongPressGestureRecognizer
alloc]
initWithTarget:self
action:@selector(longPress:)];
longPressGR.minimumPressDuration =
0.5;
[cell addGestureRecognizer:longPressGR];
2、将手势添加到cell上之后在设置手势的tag值;
longPressGR.view.tag = indexPath.row;
相关文章推荐
- wma tag 批量修改[原代码-从wmfsdk中修改]
- 网站被黑后的处理方法及批量删除恶意代码
- 再谈反向链接,又学了东西
- 大家要经常更新内容啊-针对百度的原创收录速度测试
- jsp 定制标签(Custom Tag)
- DEDECMS TAG伪静态 IIS_rewrite配置方法附rewrite下载
- 个人经验总结:网站被百度“拔毛”如何恢复?
- JSP自定义分页标签TAG全过程
- 网站优化细节之服务器的选择真没见过
- jQuery实现tag便签去重效果的方法
- 3种高效的Tags标签系统数据库设计方案分享
- Javascript让DEDECMS告别手写Tag
- Tag技术的实现思路
- The Introduction Of Input Tag
- 很难找齐的常识
- 喜讯:富士康宣布员工整体薪资水平提升30%以上
- 交换机端口处理过程
- title
- title
- git tag 记忆条