所有可见地图图块加载时调用的Google地图事件
有没有办法以编程方式确定Google地图何时完成在MKMapView中加载可见的图片图块?我想在一个iPad应用程序的屏幕截图,其中有一个Google地图,但我不知道等待多长时间才采取截图。
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.
我似乎找不到一个事件触发,当瓷砖加载完成,因此屏幕截图实际上会有图像,而不是一个空白的灰色背景。 p>
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.
此方法:
- (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView
This method: - (void)mapViewDidFinishLoadingMap:(MKMapView *)mapView
在 MKMapViewDelegate协议中会为您做。