Blue annotation dot


I’m using the simulator. In the text it says that the current location will always display Apple’s headquarters. However, when I build and run my application, I cannot view the blue annotation dot for Apple’s headquarters. I don’t understand what I’ve done wrong. Please help me.


Have you made sure your mapView outlet has been correctly connected to the instance of MKMapView in the XIB file and that you have saved that XIB file. (Do a NSLog(@"%@", mapView); in application:didFinishLaunchingWithOptions: and the result should print out something like : 0x335353) Also, are you, within application:didFinishLaunchingWithOptions: calling the following:

    [mapView setShowsUserLocation:YES];