oguzhantopsakal

Problem with getting screenshot using latest ArcGIS SDK on iOS 6

Discussion created by oguzhantopsakal on Jul 31, 2013
Latest reply on Aug 13, 2013 by oguzhantopsakal
This question has been asked before and answered (for example: http://forums.arcgis.com/threads/78166-How-to-save-screenshot-of-AGSMapView). However, the solution provided returns a black blank image on iOS 6 when used on a device (it works on the simulator). The suggestion to fix the problem on the device is to try use the following code:

    CAEAGLLayer *eaglLayer = (CAEAGLLayer *) self.mapView.layer;
     eaglLayer.drawableProperties = @{
     kEAGLDrawablePropertyRetainedBacking: [NSNumber numberWithBool:YES],
     kEAGLDrawablePropertyColorFormat: kEAGLColorFormatRGBA8
     };


However, it did not work for me. I would really appreciate if someone can share a solution for this problem..

Note: Latest ArcGIS SDK, I am using is:Version 10.1.1 Update 1

Thanks!

Outcomes