Can't get Mapview


#1

I can get Map showing in the tab but when I click on it it crashes. The error I get is 2012-01-23 22:41:43.871 HypnoTime[1958:11603] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Could not load NIB in bundle: ‘NSBundle </Users/briankaty1/Library/Application Support/iPhone Simulator/5.0/Applications/B5F80C36-F593-4D51-93AE-C06F9675E1EB/HypnoTime.app> (loaded)’ with name ‘Map’’

This is what is showing in the view did load method.

  • (void)viewDidLoad
    {
    [super viewDidLoad];
    locationManger = [[CLLocationManager alloc] init];
    // Do any additional setup after loading the view from its nib.
    [mapView setDelegate:self];
    [mapView setMapType:MKMapTypeHybrid];
    [mapView setShowsUserLocation:YES];

}