Instance Method

removeGestureRecognizer(_:)

Detaches a gesture recognizer from the receiving view.

Declaration

func removeGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer)

Parameters

gestureRecognizer

An object whose class descends from the UIGestureRecognizer class.

Discussion

This method releases gestureRecognizer in addition to detaching it from the view.

See Also

Managing Gesture Recognizers

func addGestureRecognizer(UIGestureRecognizer)

Attaches a gesture recognizer to the view.

var gestureRecognizers: [UIGestureRecognizer]?

The gesture-recognizer objects currently attached to the view.

func gestureRecognizerShouldBegin(UIGestureRecognizer)

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