You can use a navigation controller if you need to handle different ViewControllers.
To add a navigation controller, you can simply use the storyboard editor.
Select ViewController - Go to Editor - Paste in - Navigation Controller.
Or:
NavigationController, , NavigationBar UIItems. ViewController. , View Controller Modal View ( )