I\'m implementing a map feature in my app where I allow the user to set their current location by panning around.
All this time, I want to have an MKAnnotatio
I suggest not using an actual id<MKAnnotation>
at all (at least for this "current location setting" mode).
Instead:
UIImageView
) containing an image of a pin (or whatever icon you like) in front of the map view. UIImageView
, set its content mode to "center" and background color to "clear" (default is clear).mapView.centerCoordinate
in the regionDidChangeAnimated:
MKMapViewDelegate method (or pan/pinch gesture recognizers) or only when the user says they're done positioning. I don't recommend using a timer (especially every 0.00001s) to query the current center coordinate.