Phong Le
Phong Le

Reputation: 281

How can I get the position of an mkannotation while it is being dragged

How can I get the coordinates of an MKAnnotation while it is being dragged? I don't see anything in the Apple documentation that would make it easy.

Upvotes: 3

Views: 261

Answers (1)

gavrix
gavrix

Reputation: 321

If you add a polyline as Overlay - there is no other way as to re-add each time it changes. BUT, as you move a ping along the map, it's position and scale can't be changed, so at this point you can just add a regular view on top of the whole map's view. And when you stop moving ping - replace you fake view with corresponding overlay. Hope, it helps you.

Upvotes: 1

Related Questions