如何使用里面的MapView动画设定的PIN(GIF图像)? [英] How to use animated custom Pin (gif image) inside Mapview?

查看:146
本文介绍了如何使用里面的MapView动画设定的PIN(GIF图像)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要添加在地图上的多个引脚应保持连续的动画。下面是我想作为引脚使用样本图像,

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.

请遵循<一个href=\"http://stackoverflow.com/questions/1857160/how-can-i-create-a-custom-pin-drop-animation-using-mkannotationview\">Animation与图形页面自定义针脚链接使用自定义针注解更好的理解。

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

您可以在喜欢的时间作为<一个在一段时间后换脚形象太href=\"http://stackoverflow.com/questions/16491869/mkmapview-annotation-dynamic-pin-image-changes-after-zooming\">Zooming更改PIN图片

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

自销的动画 - 的MKMapView

我希望这会帮助你更好的理解。谢谢

I hope it will help you to better understanding. Thanks

这篇关于如何使用里面的MapView动画设定的PIN(GIF图像)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆