gpt4 book ai didi

ios - UILongPressGestureRecognizer 回调函数的最大频率是多少?

转载 作者:行者123 更新时间:2023-11-29 12:11:41 27 4
gpt4 key购买 nike

我有一个问题,当长按时,快速移动手指,并且在回调函数中我无法检测到手指已经在某个区域,如果你移动手指足够快的话。这是我的猜测:回调函数有一个最大频率,有人知道它的确切数量吗?

最佳答案

也许更好用

touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event

touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event

touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event

而不是 UILongPressGestureRecognizer ?该功能比手势识别器具有更大的灵 active 。

关于ios - UILongPressGestureRecognizer 回调函数的最大频率是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33293429/

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