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

Get RubyMotion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.