Instance Property

visibleViewController

The view controller associated with the currently visible view in the navigation interface.

Declaration

@property(nonatomic, readonly, strong) UIViewController *visibleViewController;

Discussion

The currently visible view can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally on top of the navigation controller itself.

See Also

Accessing Items on the Navigation Stack

topViewController

The view controller at the top of the navigation stack.

viewControllers

The view controllers currently on the navigation stack.

- setViewControllers:animated:

Replaces the view controllers currently managed by the navigation controller with the specified items.