UIViewController.NavigationController Property
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.
The nearest ancestor UINavigationController
public virtual UIKit.UINavigationController NavigationController { [Foundation.Export("navigationController", ObjCRuntime.ArgumentSemantic.Strong)] get; }
member this.NavigationController : UIKit.UINavigationController
Property Value
The default value is null
.
- Attributes
Remarks
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.