Edit

Share via


UIViewController.NavigationController Property

Definition

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.

Applies to

See also