How to animate mapView annotations from one locati

2019-07-18 03:28发布

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.

1条回答
smile是对你的礼貌
2楼-- · 2019-07-18 04:07

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.

查看更多
登录 后发表回答