I have a UIView
that uses both UIKit
control and OpenGL
. I'd like to get a screenshot of that view programatically.
If I use UIGraphicsGetImageFromCurrentImageContext()
, the OpenGL
content is blank;
If I use the glReadPixels(...)
method, the UIKit content is blank;
I'm confused as how to take a complete screenshot. Thank you!