开发者

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):

Map hasn`t been displayed

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜