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.
Asked
Active
Viewed 1,812 times
2
-
You are using apple maps or google maps? – iHulk Sep 24 '14 at 11:41
-
i am using apple maps. – shivam Sep 24 '14 at 11:44
1 Answers
3
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.

iHulk
- 4,869
- 2
- 30
- 39
-
-
1Hi, i am having a problem. `annotation.coordinate` is a read only property. – Awais Fayyaz Oct 15 '18 at 11:48
-
@iHulk this works great for Apple maps. How do would you do this with Google maps? – Lance Samaria May 18 '19 at 21:19