Instance Property


The gesture-recognizer objects currently attached to the view.


@property(nonatomic, copy) NSArray<__kindof UIGestureRecognizer *> *gestureRecognizers;


Each of these objects is an instance of a subclass of the abstract base class UIGestureRecognizer. The default value of this property is nil. If you add a gesture recognizer and then remove it, the value of the property is an empty array.

See Also

Managing Gesture Recognizers

- addGestureRecognizer:

Attaches a gesture recognizer to the view.

- removeGestureRecognizer:

Detaches a gesture recognizer from the receiving view.

- gestureRecognizerShouldBegin:

Asks the view if the gesture recognizer should be allowed to continue tracking touch events.