title: Camera controller not working when taking screenshot
body: <p>I took screenshot of overlay image with background camera controller. But background cameracontroller layer is hiding when taking picture</p>
  
  <p>code:</p>
  
  <pre><code>CGRect rect = [previewView bounds];
  UIGraphicsBeginImageContext(rect.size);
  CGContextRef context = UIGraphicsGetCurrentContext();
  [previewView.layer renderInContext:context];   
  UIImage *img = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
   UIImageWriteToSavedPhotosAlbum(img, nil, nil, nil);
  </code></pre>