4

I know there are a few questions about this but i just cant seem to find any good answer to the question. What I am doing is fetching information from a db and collect the info into annotations on a map in mapview (Iphone).

What I want is to update the information from the database every second or so and update the annotations so that the new locations is shown on the map. So for instance if coordinates are moving it will show the movement every second. Are there any standard methods for this or any other good fixes?

arserbin3
  • 6,010
  • 8
  • 36
  • 52
Tobias
  • 494
  • 3
  • 14
  • 30

1 Answers1

3

You can use [yourAnnotation setCoordinate:newCoordinate];

Pls see if this SO question helps you MKMapView moving Annotations Automatically - animate them?

Community
  • 1
  • 1
visakh7
  • 26,380
  • 8
  • 55
  • 69