O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:
300
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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required