UIViewController.NavigationController Property
Definition
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
.
- 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.