Select to view content in your preferred language

Getting blank white image for screenshot

1866
1
Jump to solution
06-26-2013 11:04 AM
RickJones
Deactivated User
This code used to work. Is anyone else getting a white image instead of a screenshot of the map?

 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);


Edit: I tried saving a normal UIView's image, and that works fine.
I've also tried changing the opacity to YES, and scale to 1.0.
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
Please look at this forum post for an answer.

Regards,
Nimesh

View solution in original post

0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
Please look at this forum post for an answer.

Regards,
Nimesh
0 Kudos