Enumeration

NSTouchPhase

The possible phases of a touch.

Declaration

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

Overview

These constants are used by phase.

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

Using Touch Properties

identity

The changes to a particular touch during its lifetime.

phase

The current phase of the touch.

normalizedPosition

The normalized position of the touch.

resting

The indicator for a resting touch.