Edytuj

Udostępnij za pośrednictwem


UIViewController.GetTargetViewControllerForAction(Selector, NSObject) Method

Definition

Gets the view controller for the specified action and sender.

[Foundation.Export("targetViewControllerForAction:sender:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController GetTargetViewControllerForAction (ObjCRuntime.Selector action, Foundation.NSObject sender);
abstract member GetTargetViewControllerForAction : ObjCRuntime.Selector * Foundation.NSObject -> UIKit.UIViewController
override this.GetTargetViewControllerForAction : ObjCRuntime.Selector * Foundation.NSObject -> UIKit.UIViewController

Parameters

action
Selector

Specified action.

sender
NSObject

The object that sent the action.

This parameter can be null.

Returns

The view controller that responds to the action.

Attributes

Applies to