Map hasn`t been displayed
please i have a problem with Map displaying, although, in the simulator it`s displayed well, on the iPhone i see this (the left one is with Hybrid mode and the right is with standard mode):
here is some of my code :
-开发者_开发百科 (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{
location = newLocation.coordinate;
MKCoordinateSpan span;
if (shouldAdjustZoom) {
//use the manually defined span
span.latitudeDelta=.005;
span.longitudeDelta=.005;
mapRegion.span = span;
}
else {
mapRegion=mapView.region;
mapRegion.center=newLocation.coordinate;
mapView.region=mapRegion;
}
// Apply new coordinates
[mapView setRegion:mapRegion animated:TRUE];
}
The blue color actually makes me think you are in the middle of the ocean. Have you checked your center point?
精彩评论