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

Navigation Controllers

The most common way to work with multiple view controllers is to use a navigation controller, which is a view controller that manages a stack of child view controllers. This UINavigationController will become the new point of entry to the storyboard and will have our current RootViewController as the first thing it shows. From there, we’ll add more view controllers, and the navigation controller will keep track of which one we’re looking at and how to go back to earlier ones in the stack.

We won’t have to write a new class for this, as the UINavigationController is meant to be used as is and is seldom subclassed.

Actually, we don’t need to write code at all to use a navigation controller; we can do everything in the storyboard. ...

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