Creating retina screenshot programmatically resulting in non retina image
I am trying to take a retina screenshot programmatically and I have tried every approach found online, but I was not able to get the screenshot to be retina. I understand the following private API: UIGetScreenImage(); cannot be used as Apple will reject your app. However, this method returns exactly what I need (640x960 screenshot of the screen). I have tried this method on my iPhone 4 as well as the iPhone 4 simulator on retina hardware, but the resulting image is always 320x480. -(UIImage *)captureView { AppDelegate *appdelegate = [[UIApplication sharedApplication]delegate]; if ([[UIScreen