如何从一个位置动画图形页面标注到另一个? [英] How to animate mapView annotations from one location to another?

查看:113
本文介绍了如何从一个位置动画图形页面标注到另一个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一种情况在我的iPhone应用程序,我应该从一个位置移动我的注释(汽车图像)到另一个位置....我很新到iOS。我在特定时间的方式服务器获取坐标。我已经使用 HGMovingAnnotationSample 但我的条件是不同的。
请帮帮我。我已经浪费了太多的时间。

I have a situation in my iPhone app where I should move my annotations (car image) from one location to another location....I am quite new to iOS. I am getting coordinates from server in particular time manner. I have already used HGMovingAnnotationSample but my condition is different. Please help me. I already wasted too much time on it.

推荐答案

你有没有使用用简单的动画

Have you used simple animation using

-(void) animateAnnotation:(MyAnnotation*)annotation{
   [UIView animateWithDuration:2.0f
                    animations:^{
                         annotation.coordinate = newCordinates;
                    }
                    completion:nil];
}

刚检查出来可能是它会帮助你。

Just check it out may be it will help you.

这篇关于如何从一个位置动画图形页面标注到另一个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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