I have to put a tabby controller inside a navigation controller. So when the first time an item is selected on the navigation controller, the tabbar is placed in the view, on the first tab there is another navigation controller inside this tabbar.
Although I only need a navigation bar
I have come in 2 ways, but it is not sure how better it is (ie more acceptable etc)?
1) The first navigation controller is not actually a navigation controller, but it looks similar to the user, so when the selection of the cell is selected in the table, then first remove the view of the NVC from the supervision. Given and the view of Tabersia has been added, the animation must be done manually. 2) The first NAC is actually a NavC and when an item is selected and the tabbar is pushed onto the screen, then the Navigation Navbarbar is hidden first, so that the first navbar of the tab is the only NAV bar on the screen.
I do not think this is a good idea. A Navigation Controller does not support the framework of being a tab bar controller in the form of a root view controller. (Many 'controllers' in that sentence).
From Docs:
initWithRootViewController:
launches and newly created navigation controller.
- (id) initWithRootViewController: (UIViewController *) RootviewController
Parameter
Rootview Controller
The View Controller that stays at the bottom of the navigation stack. This object can not be an example of the UITabBarController class .
(Italic emphasis my)
Comments
Post a Comment