title: Keep transparency in screenshot iOS
body: <p>I am taking screenshot of a particular View in my Xib file with the following code...</p>
  
  <pre><code>UIView* captureView = self.view;
  UIGraphicsBeginImageContextWithOptions(captureView.bounds.size, NO , 0.0f);
  [captureView.layer renderInContext:UIGraphicsGetCurrentContext()];
  UIImage * screenshot = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  UIImageWriteToSavedPhotosAlbum(viewImage, nil, nil, nil);
  </code></pre>
  
  <p>It works fine and saves JPG image to camera roll.</p>
  
  <p>But problem is, There is another <em>UIImageView</em> on the top of my View, that <em>UIImageView</em> has a semi-transparent image in it. 
  My screenshot doesn't preserve that transparency in the screenshot it is taking. 
  I want to keep the transparency as it is in the actual screen. </p>
  
  <p><strong>How can you preserve the transparency in the screenshot?</strong></p>