O'Reilly logo

RubyMotion by Clay Allsopp

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

Using Multiple Controllers with UINavigationController

Although some iOS apps are famous for their unique visuals, most apps share a common set of interface elements and interactions included with the SDK. Typical apps will have a persistent top bar (usually blue) with a title and some buttons; these apps use an instance of UINavigationController, one of the standard container controllers in iOS.

Containers are UIViewController subclasses that manage many other child UIViewControllers. Kind of wild, right? Containers have a view just like normal controllers, to which their children controllers’ views are added as subviews. Containers add their own UI around their children and resize their subviews accordingly. UINavigationController adds a ...

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