MKAnnotationView rotation
===

I have a moving annotation on a MKMapView showing the current user location. I set up my own image for that annotation and I want to rotate it so that you can see the heading.

In the _viewForAnnotation_ delegate, I have:

    static NSString *identifier = @"MyLocation";   
    MKAnnotationView *annotationView = (MKAnnotationView *) [aMapView dequeueReusableAnnotationViewWithIdentifier:identifier];
    if (annotationView == nil) {
        annotationView = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier];
    } else {
        annotationView.annotation = annotation;
    }
    annotationView.enabled = YES;

    annotationView.canShowCallout = NO;
        annotationView.image = [UIImage imageNamed:@"airPlane.png"];
    [annotationView setTransform:CGAffineTransformMakeRotation(heading*(M_PI/180))];

    return annotationView;


The rotation of the image works well, but the problem is the heading is never updated i.e. the image rotates only one time at the beginning of the execution. However, putting a breakpoint on this last line shows it's called multiple times.

Any help much appreciated!