Bearbeiten

Freigeben über


UINavigationController.PopToViewController(UIViewController, Boolean) Method

Definition

Pops UIViewController objects until .

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

Parameters

viewController
UIViewController

The view controller to pop to.

animated
Boolean

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

Returns

An array of view controller that were popped from the stack in the process of returning to the root controller.

Attributes

Remarks

The UINavigationController will pop view controllers until the specified controller is at the top of the stack, after which it's view will be displayed.

Applies to