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

Separating Controllers with UITabBarController

UITabBarController functions an awful lot like UINavigationController. The children controllers’ views fit above the black tab bar, where each tab corresponds to one child. The Music app shows a tab with room for four controllers:

images/controllers/tab_bar.png

The fact that the More tab appears here indicates there are more than five children.

Unlike other containers, UITabBarControllers are only to be used as the rootViewController of a UIWindow. You cannot push an instance of UITabBarController in pushViewController:animated:. From a user-experience perspective, this means you should use a tab bar only if contains very distinct ...

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