UIResponder. Target For Action(Selector, NSObject) Get
Target For Action(Selector, NSObject)
Returns the object that responds to an action.
[Foundation.Export("targetForAction:withSender:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] public virtual Foundation.NSObject GetTargetForAction (ObjCRuntime.Selector action, Foundation.NSObject sender);
abstract member GetTargetForAction : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject override this.GetTargetForAction : ObjCRuntime.Selector * Foundation.NSObject -> Foundation.NSObject
The selector that represents the action that is being probed. For editing operations, these selectors are "copy:", "cut:", "delete:", "paste:", "select:", "selectAll:", "toggleBoldface:", "toggleItalics:", "toggleUnderline:".
The default implementation of this method calls the CanPerform(Selector, NSObject) method, and if it returns true, it returns this instance.
This method can be overwritten to provide a different behavior than the default.