Correct Behavior when Annotation Added?


I have gotten to the end of this chapter, it looks like the annotation is added to my current location, however it doesn’t seem to zoom in to this point unless I unzoom from the Cupertino location. (I am running only via the simulator.)

Is this the right behavior or should it be auto-scrolling to my new location first? I can’t really tell from the text of the book, but it seems like it should probably at least zoom in on my map pin automatically.

If I run the chapter sample code, the behavior seems to be the same though. I have added the additional method call mentioned in the “not zooming post”.


  • (void)mapView:(MKMapView *)worldView didUpdateUserLocation:(MKUserLocation *)userLocation
    CLLocationCoordinate2D loc = [userLocation coordinate];
    MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(loc, 250, 250);
    [worldView setRegion:region animated:YES];

Thanks again (in advance.)