To display the title for the current loaction in map in iphone

血红的双手。 提交于 2019-12-11 02:47:23

问题


I am new to iphone development. I have created map applications and i displayed the cuurent locations and drop a pin to the current location. now i want to display the title and subtitle of the current location when i am clicking the pin. Please help me out.

Thanks.


回答1:


To display title and subtitle your annotation object you add to map must respond to -title and -subTitle messages (defined in MKAnnotation protocol as optional).

Edit: You can also obtain information about given location using MKReverseGeocoder class that queries google based servises for that and returns data via its delegate (see MKReverseGeocoderDelegate protocol).



来源:https://stackoverflow.com/questions/2355413/to-display-the-title-for-the-current-loaction-in-map-in-iphone

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!