Application with two UITabBarControls

Posted by kovpas on Stack Overflow See other posts from Stack Overflow or by kovpas
Published on 2010-04-20T18:28:42Z Indexed on 2010/04/20 18:33 UTC
Read the original article Hit count: 634

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 :).

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa-touch