title: Where to create navigationController so that I can use the pushViewController function
body: <p>I created a Tab-based application in Xcode 4 using the "Tabbed Application template".</p>
  
  <p>In one of the view controllers, I have a Table View. Now when the user clicks on an item the table displays, I want a new view to appear.</p>
  
  <p>I tried using:</p>
  
  <pre><code>[self.navigationController pushViewController:self.detailsViewController animated:YES];
  </code></pre>
  
  <p>but that doesn't work. On further inspection, I found out that <code>self.navigationController</code> is null, so I guess I have to create it somewhere.</p>
  
  <p>Could you point me to where would I create it?</p>
  
  <p>I am guessing it would be in the Application Delegate's <code>applicationDidFinishLaunching</code> method? Here's how it currently looks (this has been generated automatically by Xcode):</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      // Override point for customization after application launch.
      return YES;
  }
  </code></pre>
  
  <p>Thanks a lot for any help, I've been stuck on this for a while and I can't seem to find out how to do this...</p>