title: PushviewController not working when called from a subview
body: <p>I'm building an iPhone app, with the following structure:
  I have the <strong>MainViewController</strong> which consists of 2 views (like split screen).
  The <em>first</em> view of them, has a button. On tap, a UItableView (<strong>ResultTableViewController</strong>) appears in the <em>second</em> (of the above) view:</p>
  
  <pre><code>-(IBAction)buttonTapped:(id)sender {
    if ([(UIButton *)sender tag] == 0) {
        ResultsTableViewController *childViewController = [[ResultsTableViewController alloc] init];
        childViewController.tableView.delegate = self.results;        
        [self.results.view addSubview:childViewController.tableView];
      }
  }
  </code></pre>
  
  <p>So I have a UItableView as a sub-view of a UIView.</p>
  
  <p>The problem is that pushViewController() in didSelectRowAtIndexPath() of ResultTableViewController does not work (self.navigationController is nil).</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      DetailsViewController *detailView = [[DetailsViewController alloc] initWithNibName:@"DetailsViewController" bundle:[NSBundle mainBundle]];    
      [self.navigationController pushViewController:self.detailView animated:YES];
  }
  </code></pre>
  
  <p>I have tried many of the solutions I found, but nothing works.</p>
  
  <p>In my MainWindow.xib, I have only MainViewController added, is that the problem?</p>
  
  <p>Thanks in advance!</p>