I am developing an app in which i need to use map kit(first time) and i am also new in iphone. My requirement is that user can edit location and set his desired location using pin. I follow many tutorial but i couldn’t get this that users can change location to move pin on map. Any help plz, thnx.
Share
You could use a UIGestureRecognizer to detect touches on the map view.
In the place where you setup the map view (in viewDidLoad for example), attach the gesture recognizer to the map view:
or to use a long press:
In the handleGesture: method: