iphone - 缩短 UIScrollView 中的触摸延迟?

标签 iphone uiscrollview touch delay ios

我想缩短 UIScrollView 上的触摸延迟,但我不想使用 setDelaysContentTouches:NO;我仍然希望有一点延迟,但我的用户提示它太长了。

有办法吗?

最佳答案

医生说

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. Subclasses can override the touchesShouldBegin:withEvent:inContentView:, pagingEnabled, and touchesShouldCancelInContentView: methods (which are called by the scroll view) to affect how the scroll view handles scrolling gestures.

所以我认为没有简单的方法可以做到这一点。您可能必须在这些方法中重新实现整个计时器系统。

关于iphone - 缩短 UIScrollView 中的触摸延迟?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3080520/

相关文章:

swift - UIScrollView 即使只有一页也可以水平滚动

javascript - IE10 MSPointerUp 在不释放手指的情况下触发(触摸保持时)

html - 如何在移动设备的 100% 高度范围内定位元素

objective-c - 如何设置uiclearcolor的alpha?

iphone - 在 iPhone 5 中启动画面消失后主屏幕看起来像变化?

ios - 如何将一个 ScrollView 图像选择到另一个 ScrollView 中?

ios - 如何禁用 UIScrollView 的水平滚动?

java - Android 上有没有办法检测触摸事件的来源?

在 Xcode 中将 iPhone 应用程序部署到别人的手机上

ios - NSDateComponents 四舍五入