【发布时间】:2018-08-28 13:10:26
【问题描述】:
我有 MKMarkerAnnotationView 来改变我地图上大头针的颜色。
func mapView(_ MapView:MKMapView, viewFor annotation: MKAnnotation) -> MKAnnotationView?{
let view = MKMarkerAnnotationView(annotation: annotation, reuseIdentifier: "pin")
view.markerTintColor = .blue
return view
}
但是,当我启动我的应用程序时,我的默认位置标记变为。 如何在不更改此标记的情况下更改引脚? 查看位置的代码也很简单
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation])
{
self.MapView.showsUserLocation = true
}
感谢您的回答! :)
【问题讨论】:
标签: ios swift annotations mapkit swift4