Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

igorladessa

macrumors newbie
Original poster
Dec 10, 2012
6
0
I'm trying to do a UItabBarController, but only 1 tab works...I have the ViewController and the XIB's and a Windows with the TabBarController that each tab linked a ViewController and your respected xib. But only one tab works (VerbetesViewController) The ViewController methods are called but the view appears white and Verbetes Appears correctly

In AppDelegate I have:

Code:
 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
 SplashVideoController *aMenuController = [[SplashVideoController alloc]
                                        initWithNibName:@"SplashVideoController" bundle:[NSBundle mainBundle]];

[_window addSubview:aMenuController.view];

[aMenuController setTabController:tabController];



[_window makeKeyAndVisible];

[application setStatusBarStyle:UIStatusBarStyleBlackTranslucent];

return YES;
}
And in InterfaceBuilder I have: (pls, look the print screens) Why work only the "Verbetes" tab?

http://imageshack.us/photo/my-images/16/capturadetela20121219as.png/

http://imageshack.us/photo/my-images/829/capturadetela20121219asj.png/

http://imageshack.us/photo/my-images/521/capturadetela20121219asf.png/
 
Resolved

Sorry, wasn't problem with tabController...I miss a @synthesize in ViewController

The TabBarController is OK!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.