【发布时间】:2014-11-10 19:02:25
【问题描述】:
我有一个 mapView,我使用 didUpdateLocations 来显示位置用户,但我也使用 setCenterCoordinate 来显示预先确定的 pin 蓝色圆圈,以显示 mapView 左侧的位置。但是如果我使用 setCenterCoordinate 地图不会缩放...
churchLocation.longitude += self.mapView.region.span.longitudeDelta * 0.15;
churchLocation.latitude += self.mapView.region.span.latitudeDelta * 0.10;
self.mapView.setRegion(theRegion, animated: true)
self.mapView.setCenterCoordinate(churchLocation, animated: true)
我该怎么做?
谢谢!
【问题讨论】:
标签: swift geolocation mapkit core-location