How to insert UINavigationController
inside UITabBarController
.
Currently I have main UITabBarController
with declatarion inside application delegate like this (so tab is main)
self.window.rootViewController = self.tabBarController;
And inside one of tabs I want to insert UINavigationController
, and can't get it.
The code is contructed like this:
MainWindow.xib
with UITabBarController
object with tab typed as UINavigationController
(point to NavigationHistory.xib
) - screenshot: invalid link
NavigationHistory.xib
contains only UINavigationController
where view point to History.xibHistory.xib
have only UITableView
element - screenshot: invalid link
And now UIViewController
doesn't display my View1 view, and I have no clue why it may be. Maybe you have any clue? or point me to the place where such configuration is done.
I'll answer myself. It's good explained at https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With