开发者

Change Current Location label text

开发者 https://www.devze.com 2023-02-25 16:17 出处:网络
I had already googled for an answer, but nothing happens... I need to change the text of the blue point that show the current location.

I had already googled for an answer, but nothing happens... I need to change the text of the blue point that show the current location. When you geolocalize your position, the iPhone shows you a blue point with your position, if you tap it, its show you a text that say开发者_JAVA技巧s "Current Location". I need to change that text with something like... "Here you are", by example.

I really appreciate your answer, thx.


That blue dot is an instance of MKUserLocation. You can access it by calling the map view's userLocation property. You can then change it's title and subtitle properties.

Here's the documentation.

0

精彩评论

暂无评论...
验证码 换一张
取 消