我在哪里可以获得相位UITouchPhaseStationary的触摸事件? [英] Where can I get a touch event with phase UITouchPhaseStationary?

查看:417
本文介绍了我在哪里可以获得相位UITouchPhaseStationary的触摸事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这些方法中,我得到了相应的阶段:

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的触摸事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆