Using UINavigationController
In iOS applications, the key class for managing navigation between different controllers is the UINavigationController
class. It is a parent controller that contains several child controllers in a stack. Users can move forward by putting new controllers on top of the stack, or using a built-in back button to pop a controller off the stack and navigate to the previous screen.
The developer can manipulate the navigation controller's stack with the following methods:
SetViewControllers
: This sets an array of child controllers. It has a value to optionally animate the transition.ViewControllers
: This is a property for getting or setting the array of child controllers without an option for animation.PushViewController
: This places a new child controller at the top of the stack and has an option to display an animation.PopViewController
: This pops off the child controller at the top of the stack and has an option to animate the transition.PopToViewController
: This...