UIKit.UIGestureRecognizer.AddTarget Method
Low-level version of AddTarget.

Syntax

[Foundation.Export("addTarget:action:")]
public virtual void AddTarget (Foundation.NSObject target, ObjCRuntime.Selector action)

Parameters

target
An instance of NSObject that holds a method flagged with the specified selector.
action
The selector to invoke on the specified NSObject instance.

Remarks

Unlike the C#-based AddTarget method, this version of AddTarget requires both an NSObject instance plus a selector to invoke when the gesture is recognized.

Requirements

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