Instance Property

allowedPressTypes

An array of press types used to distinguish the type of button press.

Declaration

@property(nonatomic, copy) NSArray<NSNumber *> *allowedPressTypes;

Discussion

This property is an array of UIPressTypes that activates the gesture recognizer to distinguish the type of button press. The default press type is UIPressTypeSelect. When this property is set to an empty array, the gesture recognizer will respond to taps like a touch pad like surface. For a list of possible press types, see UIPressType enumeration in the UIPress.

See Also

Recognizing Different Gestures

allowedTouchTypes

An array of touch types used to distinguish type of touches.

requiresExclusiveTouchType

A Boolean indicating whether the gesture recognizer considers touches of different types simultaneously.