編集

次の方法で共有


UINavigationController.PushViewController(UIViewController, Boolean) Method

Definition

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

[Foundation.Export("pushViewController:animated:")]
public virtual void PushViewController (UIKit.UIViewController viewController, bool animated);
abstract member PushViewController : UIKit.UIViewController * bool -> unit
override this.PushViewController : UIKit.UIViewController * bool -> unit

Parameters

viewController
UIViewController

The view controller to push onto the navigation stack

animated
Boolean

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

Attributes

Remarks

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