Tab bar appearing below the edge of the screen
<p>I'm creating an application that, when the user selects a project in a table, displays a view with a tab bar at the bottom. I'm using this code:</p>

<pre><code>- (id)init
{
 [super initWithNibName:nil bundle:nil];

 tabController = [[UITabBarController alloc] init];

 // Create all view controllers to be included in the tab bar
 SummaryViewController *summaryController = [[SummaryViewController alloc] init];
 ImagesViewController *imagesController = [[ImagesViewController alloc] init];

 // Make an array containing the view controllers
 NSArray *viewControllers = [NSArray arrayWithObjects:summaryController, imagesController, nil];
 [summaryController release];
 [imagesController release];

 // Attach them to the tab bar controller
 [tabController setViewControllers:viewControllers];

 [self.view addSubview:tabController.view];

    return self;
}
</code></pre>

<p>With the end result being the tab bar at the bottom appearing cut off around half its height. I'm guessing it's somehow related to the navigation controller at the top (<a href="http://www.ixagon.se/tabbarproblem.png" rel="nofollow">link to image</a>).</p>

<p>Any help in solving this mystery would be greatly appreciated!</p>
