UIGraphicsBeginImageContextWithOptions(self.mapView.frame.size, NO, 0.0f); CGContextSetShouldAntialias(UIGraphicsGetCurrentContext(), NO); [self.mapView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(screenshot,self,@selector(image:didFinishSavingWithError:contextInfo:),nil);
Solved! Go to Solution.