Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to insert UINavigationController inside UITabBarController

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:

  1. MainWindow.xib with UITabBarController object with tab typed as UINavigationController (point to NavigationHistory.xib) - screenshot: invalid link
  2. NavigationHistory.xib contains only UINavigationController where view point to History.xib
  3. History.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.

like image 517
Marcin Avatar asked Dec 28 '22 21:12

Marcin


1 Answers

I'll answer myself. It's good explained at https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html

like image 198
Marcin Avatar answered May 16 '23 05:05

Marcin