Application with two UITabBarControls
- by kovpas
Hello,
I want to create an app, whith the following structure:
UITabBarController
..UINavigationController
....UITabBarController
So, in other words, I want to load first UITabbarController as my main ViewController, that appears on application start, in its' first tab there's a UINavigationController with a table, which shows another UITabBarController by pressing on a table cell.
I started Tab Based application, set first tab to UINavigationController, and its ViewController to my TableViewController.
I also created second UITabBarController in Interface Builder. Created a separate class for this controller.
Everything works fine at start - my first UITabBarController is shown perfectly, but when I'm trying to push my second UITabBarController, using my UINavigationController, it looks like nothing is loaded from a .xib file - there are just an empty TabBar and NavigationBar pushed.
Seems, that something is wrong with an architecture, but I can't figure out the problem.
Thanks in advance and I'm sorry for my poor English. Please let me know if something is not clear, I'll try to rephrase it :).