Edytuj

Udostępnij za pośrednictwem


UIControl.RemoveTarget Method

Definition

Overloads

RemoveTarget(EventHandler, UIControlEvent)

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

RemoveTarget(NSObject, Selector, UIControlEvent)

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

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

The event handler previously specified in AddTarget.

events
UIControlEvent

The event mask to remove.

Applies to

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

The target object, or null.

This parameter can be null.

sel
Selector

The action.

This parameter can be null.

Attributes

Applies to