Possible Duplicate:
Why is glReadPixels() failing in this code in iOS 6.0?
I am developing a game with OpenGL, need a screen shot when best shot taken and upload facebook but when i take screen shot its only black screen. what i do ? I also use code in link : take screen Programmatically of UIview+glview and similar code but no success.
i am suing code from : http://developer.apple.com/library/ios/#qa/qa1704/_index.html
But All code result an image in simulator not in device(in device only black or white)