且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在地图上添加别针?

更新时间:2022-12-30 08:56:14

这2个问题从堆栈溢出应该可以帮助你..

在屏幕中心放置引脚MKMapView



如何在触摸时将推针添加到MKMapView(IOS)?


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...

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?