UINavigationController.ViewControllers Property

Definition

The view controllers currently on the navigation controller's stack.

[get: Foundation.Export("viewControllers", ObjCRuntime.ArgumentSemantic.Copy)]
[set: Foundation.Export("setViewControllers:", ObjCRuntime.ArgumentSemantic.Copy)]
public virtual UIKit.UIViewController[] ViewControllers { get; set; }
member this.ViewControllers : UIKit.UIViewController[] with get, set

Property Value

This value can be null.

Attributes

Remarks

Returns an array of controllers currently on the navigation controller's navigation stack, with the root controller being at the 0 index in the array.

Applies to