0
我是新來的ios和工作地圖視圖我已經在地圖視圖(註釋)上使用lat,long。地圖視圖顯示的位置,但需要捏捏以獲得確切的位置。(使用兩個fingures縮放)我使用下面的代碼,但它不顯示確切位置的確切位置我需要使用縮放然後顯示確切的位置,但我想顯示它而不觸及地圖視圖?地圖視圖不顯示確切的位置需要縮小
zoomLocation.latitude = latmpa.doubleValue;
zoomLocation.longitude = logmpa.doubleValue;
annotationPoint = [[MKPointAnnotation alloc] init];
annotationPoint.coordinate = zoomLocation;
annotationPoint.title = @"masjid....";
[mapView selectAnnotation:annotationPoint animated:YES];
[mapView addAnnotation:annotationPoint];
mapView.centerCoordinate = annotationPoint.coordinate;
非常感謝你,你救了我的一天!!!!!! – user2902101