Modifica

Condividi tramite


UIApplicationDelegate_Extensions.GetViewController Method

Definition

Retrieves the UIViewController identified by the last value in the restorationIdentifierComponents parameter.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIViewController GetViewController (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, string[] restorationIdentifierComponents, Foundation.NSCoder coder);
static member GetViewController : UIKit.IUIApplicationDelegate * UIKit.UIApplication * string[] * Foundation.NSCoder -> UIKit.UIViewController

Parameters

This
IUIApplicationDelegate

The instance on which this extension method operates.

application
UIApplication

Reference to the UIApplication that invoked this delegate method.

restorationIdentifierComponents
String[]

An array of identifiers that identify the path to the desired view controller, which should be last.

coder
NSCoder

Returns

Attributes

Applies to