Attaches a gesture recognizer to the view.
- iOS 3.2+
- tvOS 9.0+
An object whose class descends from the
UIGestureclass. This parameter must not be
Attaching a gesture recognizer to a view defines the scope of the represented gesture, causing it to receive touches hit-tested to that view and all of its subviews. The view establishes a strong reference to the gesture recognizer.