save image with UIImageWriteToSavedPhotosAlbum after rotation of the image
<p>UIImageWriteToSavedPhotosAlbum() works pretty fine until I rotate image. According to condition, I would like to rotate image before it saved. But when I do, it happend to have low resolution only when it is after rotation.</p>

<pre><code>UIGraphicsBeginImageContextWithOptions(selectedPhoto.bounds.size, self.view.opaque, 2.0);
    [self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
    myImage = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    if (rotate == true) {


        myImage = [myImage imageRotatedByDegrees:-90];
        UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);
    }else {

        UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil);
    }
</code></pre>

<p>any hint please?     </p>
