What would be the best way to place a dot (a custom png) on an MKMapView, and allow the user to move the dot around the map. Additionally, when the finger is released, the map should center on the开发者_StackOverflow dot...
Are the any techniques which could make this possible?
I think you should check out the MKOverlayView class, as this should help you out with drawing the custom png.
You could perhaps subclass this class and override the instance methods – touchesMoved:withEvent:
, – touchesEnded:withEvent
and – touchesCancelled:withEvent:
to handle the user input?
精彩评论