Customizing the Navigation Bar
You customize the navigation bar in three ways: by adding a title for each view controller, by customizing the title of the back button, and by adding a new button to the right of the navigation bar title on the profile view.
Setting the Title
Let’s set the title of CelebritiesViewController to “Celebrities” and ProfileViewController to “Profile.”
To set the CelebritiesViewController’s title, override the viewDidLoad method as shown in the following:
Add the same code to ProfileViewController, but set the title to “Profile” instead. Save and run the code to make sure the titles appear. Notice that the title ...