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

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

问题描述

我加载一个注解到我的地图视图。注释显示为当地图加载针。

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?

(这个问题几乎是同样的事情,但不太有:<一href=\"http://stackoverflow.com/questions/2355413/to-display-the-title-for-the-current-loaction-in-map-in-iphone\">http://stackoverflow.com/questions/2355413/to-display-the-title-for-the-current-loaction-in-map-in-iphone因为我已经在我的对象定义的-title和-subtitle属性。)

(This question is almost the same thing, but not quite there: http://stackoverflow.com/questions/2355413/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.)

感谢

推荐答案

要调用的方法是selectAnnotation:动画片从的MKMapView

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

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

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