Pops view controllers until the specified view controller is at the top of the navigation stack.
- iOS 2.0+
- tvOS 9.0+
The view controller that you want to be at the top of the stack. This view controller must currently be on the navigation stack.
Set this value to
YESto animate the transition. Pass
NOif you are setting up a navigation controller before its view is displayed.
An array containing the view controllers that were popped from the stack.
For information on how the navigation bar is updated, see Updating the Navigation Bar.