title: iOS : Save image with custom resolution
body: <p>Hi I am try to capture a view then save as an image into Photo Library , but I need create a custom resolution for captured image , here is my code but when app saves the images the resolution is low !</p>
  
  <pre><code>UIGraphicsBeginImageContextWithOptions(self.captureView.bounds.size, self.captureView.opaque, 0.0);
  
  [self.captureView.layer renderInContext:UIGraphicsGetCurrentContext()];
  UIImage * screenshot = UIGraphicsGetImageFromCurrentImageContext();
  
  CGRect cropRect = CGRectMake(0 ,0 ,1435 ,1435);
  CGImageRef imageRef = CGImageCreateWithImageInRect([screenshot CGImage], cropRect);
  CGImageRelease(imageRef);
  
  UIImageWriteToSavedPhotosAlbum(screenshot , nil, nil, nil);
  
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p>but the resolution in iPhone is : 320 x 320 and retina is : 640 x 640 </p>
  
  <p>I would be grateful if you help me to fix this issue .</p>