O'Reilly logo

iOS 8 SDK Development, 2nd Edition by Janie Clayton, Chris Adamson

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

The Navigation Bar

The space at the top of the screen is the navigation bar, which appears atop any view controller managed by a UINavigationController. The navigation bar has room for three UI elements, from left to right:

  1. A left-side bar button item. For anything but the root view controller, this is typically a Back button, and a default back button will be provided if we don’t set a different bar button item of our own.

  2. A title, either as a string or as a custom view.

  3. A right-side bar button item.

We can easily customize all these things in the storyboard. First, as a bit of cleanup, we can get rid of that empty table controller that Xcode gave us, the one that was attached to the navigation controller. Select its view controller and press ...

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