本文介绍了将MKMapView的一部分渲染为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有兴趣捕获地图的一部分以创建您在弹出窗口顶部看到的图像.我想我将捕获UIImage,您可以从图钉的坐标开始吗?
I am interested in capturing a portion of the map to create the image you see on the top of the popover. I guess I'll capture a UIImage, you can do so starting from the coordinates of the pin?
谢谢
推荐答案
在iOS7
上,您可以使用MKMapSnapshotter
这篇关于将MKMapView的一部分渲染为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!