UIKit.UINavigationController.PopToViewController Method

Syntax

[Foundation.Export("popToViewController:animated:")]
public virtual UIViewController[] PopToViewController (UIViewController viewController, bool animated)

Parameters

viewController
The view controller to pop to.
animated
A boolean indicating if the transition back to the root controller should be animated.

Returns

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

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.

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0