shivam
shivam

Reputation: 136

How to animate mapView annotations from one location to another?

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.

Upvotes: 2

Views: 1841

Answers (1)

iHulk
iHulk

Reputation: 4909

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.

Upvotes: 3

Related Questions