Enumeration

NSTouchPhase

The possible phases of a touch. These constants are used by phase.

Declaration

typedef enum NSTouchPhase : NSUInteger {
    ...
} NSTouchPhase;

Topics

Constants

NSTouchPhaseBegan

A finger touched the device. Or, a resting touch transitioned to an active touch and resting touches are not wanted by the view hierarchy.

NSTouchPhaseMoved

A finger moved on the device.

NSTouchPhaseStationary

A finger is touching the device, but hasn't moved since the previous event.

NSTouchPhaseEnded

A finger was lifted from the screen. Or, an active touch transitioned to a resting touch and resting touches are not wanted by the view hierarchy.

NSTouchPhaseCancelled

The system cancelled tracking for the touch, as when (for example) the window associated with the touch resigns key or is deactivated.

NSTouchPhaseAny

Matches any phase of a touch.

See Also

Properties of this touch

identity

Use this property to track changes to a particular touch during the touch's life.

phase

The current phase of the touch.

normalizedPosition

The normalized position of the touch.

resting

Returns whether the touch is a resting touch.