get coordinates on tap in iphone application

霸气de小男生 提交于 2019-12-11 01:44:37

问题


I am create a iphone Mapkit application. I want to get the coordinates where the user has tapped on the map screen.

Best Regards, Naveed Rafi


回答1:


Handle the touch event and then Use convertPoint:toCoordinateFromView:

http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html#//apple_ref/occ/instm/MKMapView/convertPoint:toCoordinateFromView:



来源:https://stackoverflow.com/questions/3624117/get-coordinates-on-tap-in-iphone-application

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