title: Copy and resize UIView to capture contents
body: <p>I have a UIView, setup on a superview using auto-layout and its subviews are setup too through auto-layout. 
  I want to be able to resize the view to capture its resized contents to a UIImage, while keeping the view displayed on screen the same size.</p>
  
  <p>I know I can use:</p>
  
  <pre><code>UIGraphicsBeginImageContextWithOptions(myView.bounds.size, NO, 0.0);
  [myView.layer renderInContext:UIGraphicsGetCurrentContext()];
  UIImage *viewImg = UIGraphicsGetImageFromCurrentImageContext();
  </code></pre>
  
  <p>to obtain the image from the view,</p>
  
  <p>but how do I resize the view JUST for capturing its contents, whilst leaving it untouched on display?</p>
  
  <p>Thanks</p>
  
  <p><strong>EDIT for clarity</strong></p>
  
  <p>I want to be able to increase the width of the view, changing the aspect ratio of the view, allowing for the auto layout constraints to arrange its subviews to its new size. </p>
  
  <p>Is it possible to simply copy the view, don't add it as a subview of the main window (so it's not visible) and change its frame, then capture it?</p>