How add pin on map?

旧城冷巷雨未停 提交于 2019-12-24 12:05:06

问题


I have a view in which i have a map. On that view i have a tool bar. In tool bar i have a button for drop pin on map. Now i want to get methods for detecting pin drop and latitude and longitude of that point. For example when user click on button then a pin drop on center of map view. And when user click on pin then show title as the address of that point where that pin drop. What function i use for that so that i can set that event on my map view? How do that?

Thanks in advance...


回答1:


this 2 question from stack overflow should help you..

Drop pin in center of the screen, MKMapView

How to add a push pin to a MKMapView(IOS) when touching?



来源:https://stackoverflow.com/questions/7304465/how-add-pin-on-map

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