title: Adding a UITabBarController programmatically with a UINavigationBarController as the first tab TO an existing Navigation Controller
body: <p>I currently have a UINavigationController in my app delegate where I push a ViewController on to login. If the login is successful I want to then create a UITabBarController with a Navigation Controller as the first Tab whose root controller is a UIViewController that I am creating. </p>
  
  <p>The RootViewController of my first UINavigationController is actually acting as a delegate to the logincontroller so if a user logs in correctly it calls a method in my RootViewController which is where I would then like to push a UITabBarController onto the stack. Here is my code:</p>
  
  <pre><code>UITabBarController *tbController = [[UITabBarController alloc] init];
      FileBrowserViewController *fileController = [[FileBrowserViewController alloc]   init];
      fileController.pathToFileDB = pathToDBUnzipped;
      fileController.parentId = @"0";
  
      UINavigationController *navController = [[UINavigationController alloc]initWithRootViewController:fileController];
  
      NSMutableArray *aViewControllersArray = [[NSMutableArray alloc] initWithCapacity:2];
      [aViewControllersArray addObject:navController];
      [navController release];
  
      [tbController setViewControllers:aViewControllersArray];
  
      [self.navigationController pushViewController:tbController animated:YES];
  
      [tbController release];
  </code></pre>
  
  <p>Now, it is all working fine. Except 2 things. Here is the screen shot:
  <img src="https://i.stack.imgur.com/218Pc.png" alt="My iPHone"></p>
  
  <p>1) I can't see any uitabbar items. How do i set an image and the text for each tab?
  2) I don't want that top black bar. I only want 1 bar ontop with the undo button. How do I remove the additional bar?</p>