问题描述
在这些方法中,我得到了相应的阶段:
touchesBegan:withEvent:UITouchPhaseBegan,
touchesMoved:withEvent:UITouchPhaseMoved,
touchesEnded:withEvent:UITouchPhaseEnded ,
touchesCancelled:withEvent:UITouchPhaseCancelled。
In these methods, I get corresponding phases:
touchesBegan:withEvent: UITouchPhaseBegan,
touchesMoved:withEvent: UITouchPhaseMoved,
touchesEnded:withEvent: UITouchPhaseEnded,
touchesCancelled:withEvent: UITouchPhaseCancelled.
在这个阶段我可以在哪里获得触摸事件: UITouchPhaseStationary ?
Where can I get a touch event with this phase: UITouchPhaseStationary?
推荐答案
您可以假设在2 已移动
事件之间的时间内触摸静止。
You can assume a touch in the time between 2 Moved
events as stationary.
( UITouchPhaseStationary
因多点触控而存在。如果一根手指移动而另一根没有,则移动
事件仍然被触发,但静止触摸将处于 UITouchPhaseStationary
阶段。)
(UITouchPhaseStationary
exists because of multitouch. If one finger moves while the other doesn't, a Moved
event is still triggered, but the stationary touch will be in the phase UITouchPhaseStationary
.)
这篇关于我在哪里可以获得相位UITouchPhaseStationary的触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!