2014-05-19 103 views
0

從CLLocation Manager中調用'startUpdatingLocation'後,地圖自動縮放到當前位置併爲該位置設置動畫。地圖縮放到當前位置

但是,我不希望地圖縮放但保持原始大小。我怎樣才能阻止呢?請幫忙。

回答

1

例如:

mapView.userTrackingMode = MKUserTrackingModeNone; 

而且還

不要設置區域[mapView setRegion:region animated:NO];在
- (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)aUserLocation

相關問題