title: How to capture iPhone screen with animating UIWebview?
body: <p>I've just created code for screen video capturing..its perfectly working using UIView.but if i use UIWebview than the capture screen video is displayed with stuck..I know the reason.the reason is while using web view </p>
  
  <blockquote>
    <p>[[self.layer presentationLayer] renderInContext:mycontext];</p>
  </blockquote>
  
  <p>is not working..and my app is crashed</p>
  
  <p>so,if presentation layer is not working than video will be stuck.
  and using this line</p>
  
  <blockquote>
    <p>[self.layer renderInContext:mycontext];</p>
  </blockquote>
  
  <p>the screen captureing is working,but video is displaying with stuck.</p>
  
  <p>this is the code,while user browse any web-site in his or her mobile.</p>
  
  <pre><code>UIGraphicsBeginImageContextWithOptions(self.bounds.size, YES, 0.0);
  
  CGContextRef mycontext = UIGraphicsGetCurrentContext();
  
  if([[self.layer presentationLayer] respondsToSelector:@selector(renderInContext:)])
  {
      [[self.layer presentationLayer] renderInContext:mycontext];
  }
  else
  {
      [self.layer renderInContext:mycontext];
  }
  
  
  UIImage* image = UIGraphicsGetImageFromCurrentImageContext();
  UIGraphicsEndImageContext();
  </code></pre>
  
  <p>while scrolling the webview and captured the video,than the capture screen video is displayed with stuck..</p>
  
  <p>is there any solution?</p>