更改用户所在位置附近的蓝色环的颜色 [英] Change color of pulsing blue ring around user's location

查看:108
本文介绍了更改用户所在位置附近的蓝色环的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在网上进行搜索,还没有找到一种自定义地图上用户位置周围蓝色脉动环颜色的方法.

有人知道自定义脉冲环颜色的方法吗?

解决方案

用户位置的蓝色基于地图视图的色调,更改此项将为用户位置圈设置新的颜色.

//Objective-C 
mapView.tintColor = [UIColor redColor];

//Swift 4.2
mapView.tintColor = UIColor.red

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?

解决方案

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

这篇关于更改用户所在位置附近的蓝色环的颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆