gpt4 book ai didi

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

转载 作者:技术小花猫 更新时间:2023-10-29 11:25:36 25 4
gpt4 key购买 nike

我想缩短 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com