4

I want to add multiple pins on map which should remain animated continuously. Below are sample images which I want to use as Pin,

enter image description here

enter image description here

enter image description here

Is there any possible way to get this type of animated pin within MapKit? If possible then please suggest me appropriate way for it.

4

2 回答 2

2

As per my knowledge it is quite tough to implement. You can easily implement animation on any UIImageView but when you add any image on custom image then you can change custom pin image via using KVO or via NSTimer.

Please follow Animation with MapView Custom Pin link to better understanding with custom pin annotation.

You can change pin image too after a certain period of time like as Zooming change pin image

and Custom pin animation - MKMapView.

I hope it will help you to better understanding. Thanks

于 2013-05-28T10:20:35.903 回答
1

您可以创建一个自定义MKAnnotationView并将其UIImageView作为子视图。

然后,将 GIF 拆分为单独的帧,以便在 中使用UIImageView如本 SO question中所述。

于 2013-05-28T10:09:00.000 回答