title: Push another View in UINavigationController?
body: <p>How to push a view using a button in a navigation controller?
  I tried to follow this example:
  <a href="http://www.cimgf.com/2009/06/25/uitabbarcontroller-with-uinavigationcontroller-using-interface-builder/" rel="nofollow">http://www.cimgf.com/2009/06/25/uitabbarcontroller-with-uinavigationcontroller-using-interface-builder/</a></p>
  
  <p>This is exactly what I need, I have an <code>UITabBarController</code> with 4 tabs and one of them is an <code>UINavigationController</code>. I want to push that view containing the navigation controller from the first view- which is a simple <code>UIView</code>.  It doesn't work, I tried also with a programmatically created button and nothing happens. Any pointers?</p>
  
  <p>Here's the code I have</p>
  
  <pre><code>@interface HomeViewController : UIViewController {
  
  }
  
  -(IBAction)pushViewController:(id)sender;
  
  @end
  
  ---
  
  #import "HomeViewController.h"
  #import "NewViewController.h"
  
  @implementation HomeViewController
  
  -(IBAction)pushViewController:(id)sender {
          NewViewController *controller = [[NewViewController alloc] initWithNibName:@"NewViewController" bundle:nil];
      [[self navigationController] pushViewController:controller animated:YES];
      [controller release], controller = nil;
  }
  </code></pre>
  
  <p>Here is also the screenshot with the connections 
  <a href="http://imageshack.us/photo/my-images/847/screenshot20110719at620.png/" rel="nofollow">http://imageshack.us/photo/my-images/847/screenshot20110719at620.png/</a></p>
  
  <p>I've tried what you guys suggested and still nothing, the buttons( whether they are created in <code>Interface Builder</code> or programmatically ) act like they're not linked to any method.</p>