title: Programmatically add UINavigationController in UIViewController
body: <p>I currently have a view set up as the following:</p>
  
  <pre><code>@interface BlogViewController : UIViewController &lt;UITableViewDelegate, UITableViewDataSource&gt; {
      UITableView *mainTableView;
  }
  
  @property (nonatomic, retain) UITableView *mainTableView;
  </code></pre>
  
  <p>As you can see, it has a UITableView inside of it that I load all of my data to. However, when I call the following function: </p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
      SingleBlogViewController *viewController = [[SingleBlogViewController alloc] init];
      [self.navigationController pushViewController:viewController animated:YES];
      //[self presentModalViewController:viewController animated:YES];
      [viewController release];
  }
  </code></pre>
  
  <p>nothing happens. For some reason my <code>UITableView</code> inside of my <code>UIViewController</code> isn't pushing the view. Is this because it isn't a <code>UITableViewController</code>? I tried changing it to that, and it still didn't work.</p>
  
  <p>Am I missing something here?</p>