views:

433

answers:

3

Hi!

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 SDK's.

+3  A: 

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

digdog
Excellent project! Thanks alot!
jollyCocoa
A: 

This may help too, if you just want to see how to do it with 4.0: http://stackoverflow.com/questions/3191728/iphone-how-to-implement-draggable-pins-using-os-4-0-mapkit

Tristan
A: 

in iPhone 4 there is a property for MKMapAnnotationView.draggable. I could not make it work. Gived compiler error/warning. any idea?

karim
What was the compiler warning? You may need to set the base SDK properly, or perhaps you did not import MapKit...
Kendall Helmstetter Gelner