UINavigationController.PushViewController(UIViewController, Boolean) UINavigationController.PushViewController(UIViewController, Boolean) Method


Pushes a view controller onto the UINavigationController's navigation stack.

public virtual void PushViewController (UIKit.UIViewController viewController, bool animated);
abstract member PushViewController : UIKit.UIViewController * bool -> unit
override this.PushViewController : UIKit.UIViewController * bool -> unit


UIViewController UIViewController

The view controller to push onto the navigation stack

Boolean Boolean

A boolean indicating if the transition back to the root controller should be animated.


The specified controller is pushed onto the stack and the navigation controller will update its display to show this controller's view. There are a couple limitations. First, the controller must not already be part of the navigation controller's stack. Second, The controller cannot be a UITabBarController

Applies to