问题
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.
回答1:
This method: - (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView
in the MKMapViewDelegate protocol will do that for you.
来源:https://stackoverflow.com/questions/5858863/google-maps-event-that-is-called-when-all-visible-map-tiles-are-loaded