title: Change background color UIImage
body: <p>I want to capture <code>UIView</code> and save as image. Here is my code</p>
  
  <pre><code>+ (UIImage *)captureView:(UIView *)view {
      UIGraphicsBeginImageContextWithOptions(view.bounds.size, view.opaque, 0.0f);
      [view drawViewHierarchyInRect:view.bounds afterScreenUpdates:NO];
  
  //    CGContextRef context = UIGraphicsGetCurrentContext();
  //    CGContextSetFillColorWithColor(context, [[UIColor whiteColor] CGColor]);
  //    CGContextFillRect(context, view.bounds);
  
      UIImage * snapshotImage = UIGraphicsGetImageFromCurrentImageContext();
      UIGraphicsEndImageContext();
      return snapshotImage;
  }
  </code></pre>
  
  <p>It works fine. But I get one issue: I can not change background for that image. It always gets black background. 
  So, how to change background?</p>
  
  <p>Thanks.</p>