UIKit.UIResponder.GetTargetForAction Method
Returns the object that responds to an action.

Syntax

[Foundation.Export("targetForAction:withSender:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_7_0)]
public virtual Foundation.NSObject GetTargetForAction (ObjCRuntime.Selector action, Foundation.NSObject sender)

Parameters

action
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:".
sender
Object calling this method.

Returns

The object that can handle the action.

Remarks

The default implementation of this method calls the UIKit.UIResponder.CanPerform method, and if it returns true, it returns this instance.

This method can be overwritten to provide a different behavior than the default.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0