title: Add view in tab bar project - xcode
body: <p>I have a x-code project made by tab bar. On <code>AppDelegate.m</code> I create three buttons for each view:<br><br></p>
  
  <pre><code>self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
  UIViewController *viewController1 = [[[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil] autorelease];
  UIViewController *viewController2 = [[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil] autorelease];
  UIViewController *viewController3=[[[ThirdViewController alloc]initWithNibName:@"ThirdViewController" bundle:nil]autorelease];
  self.tabBarController = [[[UITabBarController alloc] init] autorelease];
  self.tabBarController.viewControllers = @[viewController1, viewController2,viewController3];
  self.window.rootViewController = self.tabBarController;
  [self.window makeKeyAndVisible];
  return YES;
  </code></pre>
  
  <p>When I am on the first view I want to create a button that calls another view:</p>
  
  <pre><code>-(IBAction)btnPush{
   [[self navigationController] pushViewController:newView animated:YES];
  }
  </code></pre>
  
  <p>but when the new view comes up it covers the tab bar on the botton. How can I do to fix the problem?</p>