0
我拍摄了截图并将图像保存到相机胶卷中,并将此图像设置为锁定屏幕。
但iPhone 4中的图像尺寸为640 * 940。我怎样才能使它640 * 960没有任何失真?我想状态栏有一些高度。拍摄快照并保存到相机胶卷时的iOS图像大小
CGSize size = self.view.bounds.size;
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);