我想获取任何位置的图像并使用此图像显示 View 。我会看起来像一个 MKMapView
但它更快(我认为是这样)
对于谷歌地图,有 api 可以做:https://developers.google.com/maps/documentation/staticmaps/
但是iOS map 呢?你能帮帮我吗?
--更新--
解决方案:MKMapSnapshotter
最佳答案
在 iOS7 下,您可以使用 MKMapSnapshotter
异步生成 MKMapSnapshot
对象,您可以请求它们的 UIImage
表示。
否则,您最好的选择是使用 MKMapView
并将 userInteractionEnabled
设置为 NO
。
或者,Google map 提供静态 map API。
关于iphone - 如何在 iOS 中获取任意位置的图片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19003302/