本文介绍了mapViewDidFinishLoadingMap:调用得太早了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单:我正在等待获取MKMapView的截图,我只想在加载地图后才这样做。不幸的是,在实际加载地图之前,这个委托方法几乎总是被称为。如果我很幸运的话,我只会得到一个网格,或者几个加载的瓷砖。有没有办法做我需要做的事情?或者我在MKMapViewDelegate协议中遗漏了什么?

My problem is simple: I'm waiting to take a screenshot of an MKMapView, and I want to do it only once the map is loaded. Unfortunately, this delegate method is almost always called before the map is actually loaded. I just get a grid, or a few loaded tiles if I'm lucky. Is there a good way to do what I need to do? Or am I missing something in the MKMapViewDelegate protocol?

谢谢!

推荐答案

这似乎是iOS 6中MapKit中的众多错误之一。希望它能在iOS 7中修复。

It seems this is one of the many bugs in MapKit in iOS 6. Hopefully it will be fixed with iOS 7.

这篇关于mapViewDidFinishLoadingMap:调用得太早了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 09:27