tags:

views:

224

answers:

1

In these methods, I get corresponding phases:
touchesBegan:withEvent: UITouchPhaseBegan,
touchesMoved:withEvent: UITouchPhaseMoved,
touchesEnded:withEvent: UITouchPhaseEnded,
touchesCancelled:withEvent: UITouchPhaseCancelled.

Where can I get a touch event with this phase: UITouchPhaseStationary?

+1  A: 

You can assume a touch in the time between 2 Moved events as stationary.

(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.)

KennyTM
Do you know this by experiments or some document?
yehnan
@yehnan: Documents. I guess most iPhoneOS programming tutorials will talk about this.
KennyTM
Oh, I know. But tutorials usually mention it in about only one or two sentences. Thanks.
yehnan