I have an MKMapView to which I add MKAnnotations. When they are displayed on the map, they use an MKAnnotationView with an (UIImage *)image property for custom annotation views.
If I now create an animated UIImage with the +(UIImage *)animatedImageNamed:(NSString *)name duration:(NSTimeInterval)duration method and assign it to the image property of the MKAnnotationView, the displayed annotation view is not animated.
I cannot find anything in the docs that forbids to assign an animated UIImage to this image property, nor that it does no animation.
Sorry, there is not much code to show: Just setup the annotation view, and assign to its image property an animated image:
MKAnnotationView *customAnnotationView is allocated and initialized with initWithAnnotation:reuseIdentifier:
Then customAnnotationView.image = [UIImage animatedImageNamed:name duration:duration];
Is there anything I missed or just a missing hint in the docs or do I something wrong?