UIGestureRecognizer.RemoveTarget UIGestureRecognizer.RemoveTarget Method

Definition

Overloads

RemoveTarget(UIGestureRecognizer+Token) RemoveTarget(UIGestureRecognizer+Token)

Removes the callback method for the specified gesture being recognized, based on the token that was returned by AddTarget.

RemoveTarget(NSObject, Selector) RemoveTarget(NSObject, Selector)

Low-level counterpart to the low-level AddTarget method.

RemoveTarget(UIGestureRecognizer+Token) RemoveTarget(UIGestureRecognizer+Token)

Removes the callback method for the specified gesture being recognized, based on the token that was returned by AddTarget.

public void RemoveTarget (UIKit.UIGestureRecognizer.Token token);
member this.RemoveTarget : UIKit.UIGestureRecognizer.Token -> unit

Parameters

token
UIGestureRecognizer.Token UIGestureRecognizer.Token

A Token returned by the AddTarget method.

RemoveTarget(NSObject, Selector) RemoveTarget(NSObject, Selector)

Low-level counterpart to the low-level AddTarget method.

[Foundation.Export("removeTarget:action:")]
public virtual void RemoveTarget (Foundation.NSObject target, ObjCRuntime.Selector action);
abstract member RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
override this.RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit

Parameters

target
NSObject NSObject

The NSObject instance where the method will be invoked.

This parameter can be null.

action
Selector Selector

The name of the selector in the target object that was registered with AddTarget.

This parameter can be null.

Applies to