Design requirement:
I have tried following structure:
UINavigationController
UIViewController
with a UITableView
UIViewController
with a UITabBar
(like here http://www.wiredbob.com/2009/04/iphone-tweetie-style-navigation.html)and also
UINavigationController
UIViewController
with a UITableView
UITabbarController
Both cases work fine with displaying the UITabBar
, but when I click an item in one of the tabs and push a new UIViewController
, then the tabs at the bottom disappears. I want the tabs to remain in place for all pushed UIViewControllers
that occurs inside a tab of the UITabBarController
.
A related question is this one but it doesn't deal with the problem of pushed viewcontrollers inside a tab: Tab bar controller inside a navigation controller, or sharing a navigation root view
Do I need to change the rootcontroller to the UITabController
? Anyone actually implemented this?
Here is the correct structure:
UITabBarcontroller (UIWindow's rootViewController)
->UINavigationController (first tab)
-->UIViewController
->UINavigationController (second tab)
-->UIViewController