UIViewController.NavigationController UIViewController.NavigationController Property


The nearest ancestor UINavigationController

[get: Foundation.Export("navigationController", ObjCRuntime.ArgumentSemantic.Strong)]
public virtual UIKit.UINavigationController NavigationController { get; }
member this.NavigationController : UIKit.UINavigationController

Property Value

The default value is null.


This function travels up the ancestore hierarchy (via ParentViewController) until it either encounters a UINavigationController or finishes without finding one. It returns the UINavigationController if one exists, null otherwise.

Applies to

See also