How can I save the current view as an image to Camera roll from my application? Is it possible?
Thanks.
Download Wallpaper To grab the images at iFixit and other sites from your iPhone, tap the image, tap the iOS Share icon, and select the option to Save Image. Open your Photos app and swipe to the image you just saved.
Found the solution. Might help someone. To save the current view as an image, do the following
UIGraphicsBeginImageContext(pictureView.bounds.size);
[pictureView.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With