使 Mapkit 注释滑入其新位置
iOS 4 允许您通过设置其位置属性来修改 Mapkit 注释的位置,但这只是将其跳转到新位置。
另一方面,每当更新时,表示用户当前位置的蓝点就会很好地滑入新位置。
当我更新注释的位置时,我是否可以做这些类型的动画?我想我可以划分两个位置之间的长/纬度点,并以一定的增量更新位置,使其看起来像动画,但我不确定这是否非常有效。
还有其他想法吗?
IOS 4 lets you modify the locations of mapkit annotations by setting their location property, however this simply jumps it into its new position.
On the other hand, the blue dot that signifies the users current location slides nicely into its new location whenever it is updated.
Is there anyway I can do these sorts of animations when I update the location of my annotations? I suppose I could divide the long/lat points between the 2 locations and update the location at certain incremeents to make it seem like its animating but I'm not sure if thats very efficient.
Any other ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过开始和动画块、更新位置并提交块?不确定但值得一去。
Have you tried beginning and animation block, updating the position and commiting the block? Not sure but worth a go.