【发布时间】:2010-11-08 09:20:00
【问题描述】:
如何以编程方式将屏幕截图保存在 Ipad 中,图片名称取自用户?
我找到了一个 sn-p,它可以工作但不询问图像的名称。
UIGraphicsBeginImageContext(self.view.frame.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
也可以在相册中创建多个文件夹并以编程方式将图像保存在其中吗??
【问题讨论】: