Search code examples
iosmkmapviewuipopovercontrollermapkit

Render part of MKMapView to image


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?

Thanks

Apple maps popover


Solution

  • On iOS7 you can use MKMapSnapshotter