UIControl.RemoveTarget UIControl.RemoveTarget Method

Definition

Overloads

RemoveTarget(EventHandler, UIControlEvent) RemoveTarget(EventHandler, UIControlEvent)

Removes a previously installed event handler for the specified event list.

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

Removes a target and action for a particular event or events.

RemoveTarget(EventHandler, UIControlEvent) RemoveTarget(EventHandler, UIControlEvent)

Removes a previously installed event handler for the specified event list.

public void RemoveTarget (EventHandler notification, UIKit.UIControlEvent events);
member this.RemoveTarget : EventHandler * UIKit.UIControlEvent -> unit

Parameters

notification
EventHandler EventHandler

The event handler previously specified in AddTarget.

events
UIControlEvent UIControlEvent

The event mask to remove.

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

Removes a target and action for a particular event or events.

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

Parameters

target
NSObject NSObject

The target object, or null.

This parameter can be null.

sel
Selector Selector

The action.

This parameter can be null.

Applies to