I'm trying to create a modal view which pops up when the user presses a button. The modal view has a navigation bar with a map view as the main view. I'm having trouble setting this up in Interface Builder. When I set the view outlet for my File's Owner's view to the view inside the Navigation Controller, the only thing that show up is the map view, with a grey space at the top and bottom. The navigation bar never appears. Here's a screenshop of how it looks, with an image of my IB window.
How can I get the navigation bar to show up properly? Thanks
Just in case, here's the MapViewController declaration:
#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
@interface MapViewController : UIViewController
{}
@end
And the code to push the modal view controller:
MapViewController *mapVC = [[MapViewController alloc] init];
self.mapViewController = mapVC;
[mapVC release];
[self presentModalViewController:mapViewController animated:YES];