UIApplicationDelegate.GetViewController Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieve the UIViewController identified by the restorationIdentifierComponents
.
[Foundation.Export("application:viewControllerWithRestorationIdentifierPath:coder:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIViewController GetViewController (UIKit.UIApplication application, string[] restorationIdentifierComponents, Foundation.NSCoder coder);
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
Remarks
To retrieve a specific UIViewController, the restorationIdentifierComponents
must contain the identifiers of the desired view controller and all its ancestors in the view controller hierarchy. The last value should be that of the desired view contoller, while the first should be the root of the view controller hierarcy.