【发布时间】:2013-01-20 02:01:23
【问题描述】:
我截取了一张图片并将图像保存到相机胶卷中,然后将此图像设置为锁定屏幕。
但是 iPhone 4 中的图像尺寸是 640*940。我怎样才能使它 640*960 没有任何失真?我猜状态栏有一些高度。
CGSize size = self.view.bounds.size;
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
【问题讨论】: