UINavigationController.PopToViewController(UIViewController, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.