我有一个UIView使用UIKit控制和OpenGL.我想以编程方式获取该视图的屏幕截图.
UIView
UIKit
OpenGL
如果我使用UIGraphicsGetImageFromCurrentImageContext(),OpenGL内容是空白的; 如果我使用该glReadPixels(...)方法,则UIKit内容为空;
UIGraphicsGetImageFromCurrentImageContext()
glReadPixels(...)
我很困惑如何拍摄完整的截图.谢谢!
iphone screenshot opengl-es uikit ios
ios ×1
iphone ×1
opengl-es ×1
screenshot ×1
uikit ×1