2014-03-25 60 views
2

這是我在嘗試加載mapView時看到的消息。我的註釋加載正常,但沒有地圖,或有時是部分地圖。我得到一個空白頁面。但是當我平移時,一些地圖會加載。 *編輯::似乎在iPod觸摸發生7.1 - iPhone 5的工作確定iOS 7.1地圖未加載並提供以下消息

本地化瓦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

我在Xcode 5.0中也有類似的錯誤。 將Xcode升級到5.1解決了這個問題。