这是我在尝试加载mapView时看到的消息。我的注释正在加载正常但没有地图,或者有时是部分地图。我得到一个空白页面。但是当我平移时,一些地图会加载。 *编辑::似乎正在iPod touch 7.1上发生 - iPhone 5工作正常
本地化磁贴22.50.7 GEOTileSetStyle_VECTOR_POI,GEOTileSize_PX512,GEOTileScale_NODPI.en不是VLOC格式
我的代码:
[self.mapView setDelegate:self];
[self.mapView setShowsUserLocation:YES];
[self.mapView setMapType:MKMapTypeStandard];
// get location from search
CLLocationCoordinate2D zoomLocation;
zoomLocation.latitude = self.searchLat;
zoomLocation.longitude= self.searchLon;
MKCoordinateRegion viewRegion = MKCoordinateRegionMakeWithDistance(zoomLocation, self.mapScale*METERS_PER_MILE, self.mapScale*METERS_PER_MILE);
[self.mapView setRegion:viewRegion animated:YES];
// remove all previous annotations
for (id<MKAnnotation> annotation in self.mapView.annotations)
{
[self.mapView removeAnnotation:annotation];
}
for (int i = 0; i < [self.mapArray count]; i++)
{
MyInfo *info = [self.mapArray objectAtIndex:i];
CLLocationCoordinate2D coord;
coord.latitude = info.lat;
coord.longitude = info.lon;
NSInteger count = i+1;
MyAnnotation *annotation = [[MyAnnotation alloc] initWithCoordinate:coord title:info.desc clubInfo:info index:count];
[self.mapView addAnnotation:annotation];
}
答案 0 :(得分:0)
我在Xcode 5.0中也有类似的错误。 将Xcode升级到5.1解决了这个问题。