UIScrollView UICollectionView 无法响应touch事件
2016-05-27 12:12
537 查看
创建一个 UIScrollView+UITouch.h category文件。
重写一下touch的所有需要的方法。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
}
即可。
重写一下touch的所有需要的方法。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesBegan:touches withEvent:event];
}
即可。
相关文章推荐
- UICollectionView 浅析
- UICollectionView cell点击无响应
- 某软件公司的GUID生成代码(GUIDFactory)java+C#
- BBC-The Race and a quiz
- <minigui>GDI双缓冲之道
- leetcode 347. Top K Frequent Elements
- iOS UIImage类扩展(按照位置和大小截图图片中部分图片)
- 序列式容器:vecor,stack,queue用法
- UILabel顶端对齐
- easyui——一些有用的组件使用小记
- NSString(或者说是UILabel)加入 “行间距” 之后的 “高度”计算
- UITextField自定义输入限制(纯数字输入,不输入汉字,小数点后位数限制)
- 新浪微博请求授权显示错误页面的解决方法((error:invalid_request) )
- esayui的combotree属性值
- String、StringBuffer与StringBuilder之间区别
- QtUI设计:设置控件透明
- Java ProcessBuilder 启动 PHP进程 及其读和写的交互
- easyui messager alert 三秒后自动关闭提示
- UIViewController的基本概念与生命周期
- Android SystemUI源码分析(一)