Cell上的subView添加手势 与 cell点击手势冲突
2016-07-27 17:44
309 查看
UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tel)];
[cell.contentLabel addGestureRecognizer:tap];
cell.contentLabel.userInteractionEnabled = YES;
设置上面所添加手势的view的 userInteractionEnabled = YES 便可以响应
[cell.contentLabel addGestureRecognizer:tap];
cell.contentLabel.userInteractionEnabled = YES;
设置上面所添加手势的view的 userInteractionEnabled = YES 便可以响应
相关文章推荐
- 集合 题解
- linux下帮助和历史命令的使用详解
- Yii2中request的使用方法
- 【分享】分享一个压缩 PNG 的网站 TinyPNG
- 【转】nanosleep的精度与调度算法的关系 来自:bean.blog.chinaunix.net
- solrcloud整合zookeper
- CSS 的优先级机制
- Android BitmapShader 实战 实现圆形、圆角图片
- tomcat自动化部署脚本
- 服务的使用
- UDP网络编程
- voip开源库
- Android增量更新
- leetcode 48. Rotate Image
- bind apply call异同
- JAVA内存分配解析
- HDU(4394),数论上的BFS
- Windows 64位驱动 关闭内存保护
- 如何Mysql 复制中的延迟?
- SpringMVC拦截器