UIKit.UIView.AddGestureRecognizer Method
Adds a gesture recognizer to this view.

Syntax

[Foundation.Export("addGestureRecognizer:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_3_2)]
public virtual void AddGestureRecognizer (UIGestureRecognizer gestureRecognizer)

Parameters

gestureRecognizer
The configured gesture recognizer to add to this view.

Remarks

Adding a gesture recognizer to a view allows definition of the scope of that represented gesture, and causes it to receive touches that are hit-tested to that view and to all of its subviews. That view then establishes a strong reference to the gesture recognizer.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0