开发者

Can I reposition an MKAnnotationView that's already been placed on a MKMapView?

Every few seconds I'm retrieving an updated lat and lon for a real-world object that is in motion. This object is represented on my MKMapView by an MKAnnotationView.

Is it possible to smoothly animate the object's movement from coordinate to coordinate, rather than remove its current MKAnnotationView and add a new one at the new coordinate?

I can think of several approaches in theory, I just don't h开发者_JAVA百科ave the chops to implement them by the end of this lovely Saturday. So I am fine with any approach, however hacky, I just might need a bit of hand holding.

Thanks in advance for any help! :D


Might be worth a try...have you added the setCoordinate: to the related annotation object and set the annotationView to allow dragging? If so, can you programatically set the coordinate and update it?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜