Get the coordinates of a point from mkmapview on iphone

前端 未结 5 1433
夕颜
夕颜 2020-12-08 22:36

I\'m trying to figure out how to put an annotation on a map based on where the user touches.

I have tried sub-classing the MKMapView and looked for the

5条回答
  •  庸人自扰
    2020-12-08 23:10

    A bit of dead thread digging but as this is the top result in Google it may be worth it:

    You can use the tap and hold gesture recognizer in order to get the coordinates and drop a pin on the map. Everything is explained at freshmob

提交回复
热议问题