在这些方法中,我得到了相应的阶段:
touchesBegan:withEvent:UITouchPhaseBegan,
touchesMoved:withEvent:UITouchPhaseMoved,
touchesEnded:withEvent:UITouchPhaseEnded,
touchesCancelled:withEvent:UITouchPhaseCancelled.
在这个阶段我可以在哪里获得触摸事件:UITouchPhaseStationary?
您可以假设两个事件之间的触摸Moved
是静止的。
(UITouchPhaseStationary
由于多点触摸而存在。如果一个手指移动而另一个手指不移动,Moved
仍然会触发事件,但静止触摸将处于阶段UITouchPhaseStationary
。)
归档时间: |
|
查看次数: |
1483 次 |
最近记录: |