Hi
How can I save the current view as an image to Camera roll from my application? Is it possible?
Thanks.
Hi
How can I save the current view as an image to Camera roll from my application? Is it possible?
Thanks.
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);