title: Multiple Views for UITabBarController
body: <p>I'm trying to build an app where I have a TabBarController with 4 entries.
  When I select the first entry, a view with a UITableView shows up.
  This TableView is filled with several entries. </p>
  
  <p>What I would like to do is:
  When an entry out of that UITableView gets selected, another view should show up; a detailview.</p>
  
  <p>.m</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
  if (indexPath.row == 0) {
  
  if(self.secondView == nil) {
  SecondViewController *secondViewController = [[SecondViewController alloc] initWithNibName:@"SecondView" bundle:[NSBundle mainBundle]];
  self.secondView = secondViewController;
  [secondViewController release];
  }
  
  // Setup the animation
  [self.navigationController pushViewController:self.secondView animated:YES];
  
  }
  }
  </code></pre>
  
  <p>.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import "SecondViewController.h"
  
  
  @interface FirstViewController : UIViewController {
  
  SecondViewController *secondView;
  
  NSMutableArray *myData; 
  }
  @property (nonatomic, retain) SecondViewController *secondView;
  @property (nonatomic, copy, readwrite) NSMutableArray* myData;
  
  @end
  </code></pre>
  
  <p>This is what I have so far.</p>
  
  <p>Unfortunately.. the code runs, bit the second view does not show up.</p>