问题
I've scoured the web and haven't found a way to customize the color of the blue pulsing ring around the user's location on a map.
Does anyone know a way to customize the color of the pulsing ring?
回答1:
This open source project might be useful:
https://github.com/samvermette/SVPulsingAnnotationView
回答2:
The blue color for the user location is based on the tint color of your map view, changing this will set the new color for the user location circle.
//Objective-C
mapView.tintColor = [UIColor redColor];
//Swift 4.2
mapView.tintColor = UIColor.red
回答3:
In Swift 3
mapView.tintColor = UIColor.red
or use Color Literal
来源:https://stackoverflow.com/questions/23208835/change-color-of-pulsing-blue-ring-around-users-location