You can always make your own animations in the MKMapViewDelegate method.
- (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views
Probably something like this (you won’t get an attractive shadow animation, if you want, you need to do it yourself):
- (void) mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { CGRect visibleRect = [mapView annotationVisibleRect]; for (MKAnnotationView *view in views) { CGRect endFrame = view.frame; CGRect startFrame = endFrame; startFrame.origin.y = visibleRect.origin.y - startFrame.size.height; view.frame = startFrame; [UIView beginAnimations:@"drop" context:NULL]; [UIView setAnimationDuration:1]; view.frame = endFrame; [UIView commitAnimations]; } }
gcamp Jan 26 '10 at 12:35 2010-01-26 12:35
source share