Change color of pulsing blue ring around user's location

微笑、不失礼 提交于 2019-12-12 11:59:37

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!