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

Related Symbols

var gestureRecognizers: [UIGestureRecognizer]?

The gesture-recognizer objects currently attached to the view.

func addGestureRecognizer(UIGestureRecognizer)

Attaches a gesture recognizer to the view.