title: Tabbarcontroller add tabs programmatically
body: <p>For the app i am building i have all of my Views done in a storyboard and it is using a tabbarcontrolller to switch between the different views. I have one view that i want to programmatically add to this already existing tab bar which already has three items. How can I programmatically add this tab and leave the other tabs be through the storyboard.</p>
  
  <p>More: I did what the you said but nothing happened when i added that it still only has three tabs rather than adding the fourth here is the code i have for the tab bar controller</p>
  
  <pre><code>@interface TheTabBarController ()
  
  @end
  
  @implementation TheTabBarController
  
  
  - (void)viewWillAppear:(BOOL)animated
  {
      [super viewWillAppear:animated];
      UIViewController *viewController = [[CrewsViewController alloc]init];
      NSMutableArray *tempArray = [self.tabBarController.viewControllers mutableCopy];
      [tempArray addObject:viewController];
      self.tabBarController.viewControllers = tempArray;
  }
  
  @end
  </code></pre>