los*_*sit 44
找到了解决方案.可以帮助别人.要将当前视图另存为图像,请执行以下操作
UIGraphicsBeginImageContext(pictureView.bounds.size); ?
[pictureView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9300 次 |
| 最近记录: |