我有一个地图视图,并不总是加载位置(看起来像更偏远的位置,即不是主要城市),只显示网格和图钉,但没有地图,我看到它只是当我在无线上网。无线似乎是坚固的,这是一个已知的问题,它可以解决吗?我把我的代码放在下面,虽然我说它适用于大多数地方,100%在3g上不如WIFI。 mapView位于webView
中 self.mapView.scrollEnabled = true;
self.mapView.zoomEnabled = true;
MKCoordinateSpan span = MKCoordinateSpanMake(0.003, 0.003);
MKCoordinateRegion region = MKCoordinateRegionMake(CLLocationCoordinate2DMake(-26.204029, 28.039171), span);
[_mapView setRegion: region];
MapAnnotation *annotation = [[[MapAnnotation alloc] initWithCoordinates: region.center
title: @""
subTitle: @""] autorelease];
[self.mapView addAnnotation: annotation];