UIControl.RemoveTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- events
- UIControlEvent
- Attributes