如何自动显示地图上的标题/字幕注释(引脚) [英] How to Automatically Display Title/Subtitle on Map Annotation (pin)

查看:168
本文介绍了如何自动显示地图上的标题/字幕注释(引脚)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在加载一个注释到我的地图视图。当加载地图时,注释将显示为引脚。



但是,标题和字幕不会自动出现在引脚上。目前,用户需要在标题显示之前点击该引脚。



当地图加载时,有没有办法让标题自动显示在引脚上? ?



(这个问题几乎是一回事,但不完全相同:在iphone 中显示当前位置的地图标题,因为我已经定义了-title和-subtitle属性在我的对象中。)



感谢

解决方案

是来自MKMapView的selectAnnotation:animated。


I am loading an annotation onto my map view. The annotation displays as a pin when the map is loaded.

However, the title and subtitle do not appear on the pin automatically. Currently, the user is required to tap on the pin before the title displays.

Is there a way to get the title to display automatically on the pin when the map is loaded?

(This question is almost the same thing, but not quite there: To display the title for the current loaction in map in iphone because I already have the -title and -subtitle attributes defined in my object.)

Thanks

解决方案

The method to call is "selectAnnotation:animated" from MKMapView.

这篇关于如何自动显示地图上的标题/字幕注释(引脚)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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