UIScrollView 的 delaysContentTouches
2016-04-12 15:29
148 查看
UIScrollView 的一段说明:
delaysContentTouches 的说明:
这个属性有什么具体影响呢,我遇到的就是,在UICollectionView 中,Button的点击响应的不及时,这个参数就能解决这个问题。
Because a scroll view has no scroll bars, it must know whether a touch signals an intent to scroll versus an intent to track a subview in the content. To make this determination, it temporarily intercepts a touch-down event by starting a timer and, before the timer fires, seeing if the touching finger makes any movement. If the timer fires without a significant change in position, the scroll view sends tracking events to the touched subview of the content view. If the user then drags their finger far enough before the timer elapses, the scroll view cancels any tracking in the subview and performs the scrolling itself.
delaysContentTouches 的说明:
If the value of this property is YES, the scroll view delays handling the touch-down gesture until it can determine if scrolling is the intent. If the value is NO , the scroll view immediately calls touchesShouldBegin:withEvent:inContentView:. The default value is YES.
这个属性有什么具体影响呢,我遇到的就是,在UICollectionView 中,Button的点击响应的不及时,这个参数就能解决这个问题。
相关文章推荐
- UVa 1152 -4 Values whose Sum is 0—[哈希表实现]
- Android UI-开源框架ImageLoader的完美例子
- android 事件处理机制之requestDisallowInterceptTouchEvent
- Jewel 版ceph安装和BlueStore配置
- Hbuild - 使用海马玩模拟器调试
- 如何输出类型为uint_16,uint_32,uint_64等类型的变量
- Android Uevent 分析,从kernel到framework
- iOS UILabel详解
- Java Blocking Queue
- burpsuite联合sqlmap扫描注入点
- ueditor插入flv视频
- iOS--UILabel上画横线
- iOS--UILabel上画横线
- Request.url请求路径的一些属性
- String与StringBuffer、StringBuilder的区别
- Android中sqlite之从网上获取数据更新UI
- 禁掉UITextField的粘贴功能
- topLayoutGuide
- UITabBarController简单的使用
- 关于 UITapGestureRecognizer 一些注意的地方