如何自动显示地图上的标题/字幕注释(引脚) [英] How to Automatically Display Title/Subtitle on Map Annotation (pin)
问题描述
但是,标题和字幕不会自动出现在引脚上。目前,用户需要在标题显示之前点击该引脚。
当地图加载时,有没有办法让标题自动显示在引脚上? ?
(这个问题几乎是一回事,但不完全相同:在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屋!