Resolved UITabBarController show only 1 tab

Discussion in 'iOS Programming' started by igorladessa, Dec 19, 2012.

  1. igorladessa macrumors newbie

    Joined:
    Dec 10, 2012
    #1
    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/
     
  2. igorladessa thread starter macrumors newbie

    Joined:
    Dec 10, 2012
    #2
    Resolved

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

    The TabBarController is OK!
     

Share This Page