2012-05-05 57 views
0

有沒有辦法根據您的註釋範圍查看地圖?這樣就不會留下任何引腳輸出MapKit range zoom

//Map 
mapView = [[MKMapView alloc] initWithFrame:CGRectMake(0, 0, 299, 406)]; 
[mapView setMapType:MKMapTypeStandard]; 
[mapView setZoomEnabled:YES]; 
[mapView setScrollEnabled:YES]; 
MKCoordinateRegion region = { {0.0, 0.0 }, { 0.0, 0.0 } }; 
region.center.latitude = [latitudeNumber doubleValue]; 
region.center.longitude = [longitudeNumber doubleValue]; 
region.span.longitudeDelta = 0.01f; 
region.span.latitudeDelta = 0.01f; 
[mapView setRegion:region animated:YES]; 
[mapView setDelegate:self]; 
[self.view addSubview:mapView]; 

謝謝!

回答