Share via


IUIApplicationDelegate.GetViewController Method

Definition

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

[Foundation.Export("application:viewControllerWithRestorationIdentifierPath:coder:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual UIKit.UIViewController? GetViewController(UIKit.UIApplication application, string[] restorationIdentifierComponents, Foundation.NSCoder coder);
[<Foundation.Export("application:viewControllerWithRestorationIdentifierPath:coder:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetViewController : UIKit.UIApplication * string[] * Foundation.NSCoder -> UIKit.UIViewController
override this.GetViewController : UIKit.UIApplication * string[] * Foundation.NSCoder -> UIKit.UIViewController

Parameters

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