Design requirement:
- Show a list of items the user can pick from
- After having picked an item, bring the user to a new view with a back button. The new view should contain a list of tabs at the bottom that are not present in the first screen
- When clicking an item in the tabs, a new screen should appear with a back button and the tabs should still be visible at the bottom.
- Clicking a tab should take the user back up the hierarchy to #2. Not to the first screen.
I have tried following structure:
UINavigationController
UIViewController
with aUITableView
UIViewController
with aUITabBar
(like here http://www.wiredbob.com/2009/04/iphone-tweetie-style-navigation.html)
and also
UINavigationController
UIViewController
with aUITableView
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?