我采取的截图使用下面的代码:截图使用UIGraphicsBeginImageContextWithOptions为iPad 3(视网膜)
// Returns 1024x768 for iPad Retina
CGSize screenDimensions = [[UIScreen mainScreen] bounds].size;
// Create a graphics context with the target size
// (last parameter takes scale into account)
UIGraphicsBeginImageContextWithOptions(screenDimensions, NO, 0);
// Render the view to a new context
CGContextRef context = UIGraphicsGetCurrentContext();
[myView.layer renderInContext:context];
// Save to Camera Roll
UIImage *screenshot = UIGraphicsGetImageFromCurrentImageContext();
UIImageWriteToSavedPhotosAlbum(screenshot, self, nil, nil);
UIGraphicsEndImageContext();
这工作,但我有一个用户,这将导致图像在相机胶卷的报告这不是iPad视网膜解析度。相反,它看起来更像iPad非视网膜分辨率。 (我没有iPad 3来测试它)。
还有什么我做错了吗?