Animating an MKOverlayView Animating an MKOverlayView objective-c objective-c

Animating an MKOverlayView


I solved this by adding a UIImageView as a subview of the MKOverlayView.

  • To animate, stop drawing with thenormaldrawMapRect:zoomScale:inContext: (viaan instance variable/property flag) anddraw to the UIImageView instead (tothe animationImages property), thenuse startAnimating.

  • You can handle panning and zooming byreinitializing the UIImageView inresponse tomapView:regionDidChangeAnimated:.


Is there a callback when all the tiles have finished loading? If so, you could go with double buffering, and update the view offscreen, and then switch it in.