gpt4 book ai didi

iphone - 在哪里可以获得具有 UITouchPhaseStationary 阶段的触摸事件?

转载 作者:行者123 更新时间:2023-12-03 18:59:03 24 4
gpt4 key购买 nike

在这些方法中,我得到相应的阶段:
touchesBegan:withEvent: UITouchPhaseBegan,
touchesMoved:withEvent: UITouchPhaseMoved,
touchesEnded:withEvent: UITouchPhaseEnded,
TouchsCancelled:withEvent:UITouchPhaseCancelled。

我在哪里可以获得此阶段的触摸事件:UITouchPhaseStationary

最佳答案

您可以假设 2 个 Moved 事件之间的一次触摸是静止的。

(UITouchPhaseStationary 的存在是因为多点触控。如果一个手指移动而另一根手指没有移动,仍然会触发 Moved 事件,但固定触摸将在阶段UITouchPhaseStationary。)

关于iphone - 在哪里可以获得具有 UITouchPhaseStationary 阶段的触摸事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2152711/

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