iOS 高德地图当前定位大头针随着地图拖动显示中心点

  • (void)amapLocationManager:(AMapLocationManager *)manager didUpdateLocation:(CLLocation *)location reGeocode:(AMapLocationReGeocode *)reGeocode {
    self.mapView.centerCoordinate = location.coordinate;
    [self.locationmanger stopUpdatingLocation];
    }
  • (void)mapViewRegionChanged:(MAMapView *)mapView {
    self.pointannotaion.coordinate = mapView.region.center;
    }

你可能感兴趣的:(iOS 高德地图当前定位大头针随着地图拖动显示中心点)