Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating an Drop Pin MKPinAnnotation supporting dragging like the Drop Pin in Maps App

I wonder if it's possible to create an MKPinAnnotation in a Custom MKMapView, which answers to touch and drag just like the "Drop Pin" annotation in the Maps App.

I would like a way to drop a pin at a location given by the GPS. Then let the user fine tune the exact location by touching the Pin and dragging it right, if the GPS is a bit too inaccurate.

Any help is appreciated, or information if this is impossible with allowed SDKs.

like image 780
jollyCocoa Avatar asked Jan 29 '26 16:01

jollyCocoa


2 Answers

You can check out my project: http://github.com/digdog/MapKitDragAndDrop, it runs on OS 3.1 or later.

like image 102
digdog Avatar answered Jan 31 '26 08:01

digdog


This may help too, if you just want to see how to do it with 4.0: (iPhone) how to implement draggable pins using OS 4.0 MapKit?

like image 33
WoodenKitty Avatar answered Jan 31 '26 08:01

WoodenKitty



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!