title: ScreenShot of an UILabel and what is in a UIImageView
body: <p>I am trying to take a screenshot of my UIImageView and a UILabel that is on top of that.</p>
  
  <p>What I have so far grabs the UIImage in the ImageView and then renders the overlay on it but the positioning of the UILabel is all wrong.  I am setting the size of the capture to the actual image size(which isn't what i want).</p>
  
  <p>I just want to be able to take a screenshot exactly how it appears on the screen.</p>
  
  <pre><code>CGSize imageSize = self.imageFromOtherView.size;
  // define the size and grab a UIImage from it
  UIGraphicsBeginImageContextWithOptions(imageSize, NO, 0);
  
  [self.imageFromOtherView drawInRect:CGRectMake(0, 0, imageSize.width, imageSize.height)];
  
  [self.socialLabel.layer renderInContext:UIGraphicsGetCurrentContext()];
  
  UIImage *capturedImage = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>