Enumeration

UITouchPhase

The phase of a finger touch.

Declaration

typedef enum UITouchPhase : NSInteger {
    ...
} UITouchPhase;

Overview

The phase of a UITouch instance changes in a certain order during the course of an event. You access this value through the phase property.

Topics

Constants

UITouchPhaseBegan

A finger for a given event touched the screen.

UITouchPhaseMoved

A finger for a given event moved on the screen.

UITouchPhaseStationary

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

UITouchPhaseEnded

A finger for a given event was lifted from the screen.

UITouchPhaseCancelled

The system canceled tracking for the touch, as when (for example) the user moves the device against his or her face.

See Also

Getting Touch Attributes

tapCount

The number of times the finger was tapped for this given touch.

timestamp

The time when the touch occurred or when it was last mutated.

type

The type of the touch.

UITouchType

The type of touch received.

phase

The phase of the touch.

force

The force of the touch, where a value of 1.0 represents the force of an average touch (predetermined by the system, not user-specific).

maximumPossibleForce

The maximum possible force for a touch.

altitudeAngle

The altitude (in radians) of the stylus.

- azimuthAngleInView:

Returns the azimuth angle (in radians) of the stylus.

- azimuthUnitVectorInView:

Returns a unit vector that points in the direction of the azimuth of the stylus.