问题描述
我要添加在地图上的多个引脚应保持连续的动画。下面是我想作为引脚使用样本图像,
I want to add multiple pins on map which should remain animated continuously. Below are sample images which I want to use as Pin,
是否有任何可能的方式来在MapKit得到这种类型的动画针?如果可能的话,请建议我适当的方式吧。
Is there any possible way to get this type of animated pin within MapKit? If possible then please suggest me appropriate way for it.
推荐答案
按我所知,这是相当艰难实现。您可以轻松地实现在任何的UIImageView动画,但是当你在自定义图像添加任何图像,然后您可以通过使用国际志愿者组织,或通过改变的NSTimer定制针的形象。
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.
请遵循Animation与图形页面自定义针脚链接使用自定义针注解更好的理解。
Please follow Animation with MapView Custom Pin link to better understanding with custom pin annotation.
您可以在喜欢的时间作为Zooming更改PIN图片
You can change pin image too after a certain period of time like as Zooming change pin image
和
我希望这会帮助你更好的理解。谢谢
I hope it will help you to better understanding. Thanks
这篇关于如何使用里面的MapView动画设定的PIN(GIF图像)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!