Fade In Map Annotation

Hi,

I have a MKMapView with grouping (annotations are grouped based on zoom) and I want to do some animation when I change from group to single annotations.

I've tried to use UIView.Animate but it doesn't work and trying to find alternative ways (just change opacity) I have:

mapView.AddAnnotation (toPlaceAnnotation);
MKAnnotationView annotationView = mapView.ViewForAnnotation (toPlaceAnnotation);
annotationView.Alpha = 0.5f;
annotationView.Opaque = false;

But annotationView is null, why? How I can I do an animation after placing an annotation?

Thanks!

Posts

Sign In or Register to comment.