6

Is there a way to programmatically determine when Google Maps is done loading visible image tiles in an MKMapView? I would like to take a screenshot of a view in an iPad app that has a Google Map in it, but I don't know how long to wait before taking the screenshot.

I can't seem to find an event that triggers when tiles are done loading so the screenshot will actually have images in it, instead of a blank gray background.

Black Frog
  • 11,595
  • 1
  • 35
  • 66
Dave Morris
  • 856
  • 9
  • 25

1 Answers1

0

This method: - (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView

in the MKMapViewDelegate protocol will do that for you.

Black Frog
  • 11,595
  • 1
  • 35
  • 66
onnoweb
  • 3,038
  • 22
  • 29
  • 2
    That event is not fired in all cases. It's very inconsistent, and seems to depend on whether map tiles are cached locally, at least in iOS 4. – Dave Morris May 04 '11 at 04:06