title: How to capture UIView to UIImage without loss of quality on retina display
body: <p>My code works fine for normal devices but creates blurry images on retina devices.</p>
  
  <p>Does anybody know a solution for my issue?</p>
  
  <pre><code>+ (UIImage *) imageWithView:(UIView *)view
  {
      UIGraphicsBeginImageContext(view.bounds.size);
      [view.layer renderInContext:UIGraphicsGetCurrentContext()];
  
      UIImage * img = UIGraphicsGetImageFromCurrentImageContext();
  
      UIGraphicsEndImageContext();
  
      return img;
  }
  </code></pre>