When using the UINavigationController, whenever you click on the new ViewController, the back button will automatically be displayed, so you can return to the previous view manager.
So it works like: UIViewController -> UIViewController -> UIViewController
A back button will appear in the last 2 so you can go back to the previous ViewController.
You do not need to do any additional coding for the "Back" button so that it appears, it will do it on its own. Hope this clarifies the situation. Let me know if you have any questions.
pob21 source share