I have a view with two uiimagesviewa inside of it, when i try to save those two images to the library, the image (containing the two images) loses the quality, what can I do to maintain the quality ? I am using this code
UIGraphicsBeginImageContext(_viewPhoto.bounds.size);
[_viewPhoto.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *MergedImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(MergedImage, nil, nil, nil);
SOLVED
I solved this by changing this line
UIGraphicsBeginImageContext(_viewPhoto.bounds.size);
to
UIGraphicsBeginImageContextWithOptions(_viewPhoto.bounds.size, NO, 0);