title: Rendering a UIWebView into an ImageContext
body: <p>I am trying to capture the contents of a UIWebView including that which is not visible to the user. i.e. The whole web page even though the user is only looking at the top.</p>
  
  <p>Looking around I found the best way to capture a UIView is to retrieve its layer and use renderInContext.</p>
  
  <p>However, UIWebView seems to be using its own CALayer implementation which is behaving a lot more like CATiledLayer, although it is still claiming to be a standard CALayer. When I call renderInContext I only get one portion of the web page, up to 940px down, as opposed to the whole page.</p>
  
  <p>Has anyone got any ideas on how to either: force the UIWebView to scroll down another 940px (obviously that is far from ideal) or tell whatever breed of CALayer it is backing the WebView to render all of its content when I ask it to.</p>
  
  <p>Cheers </p>
  
  <p>EDIT: I should add that currently change the frame of the webview to fit the size of the page retrieved through javascript.</p>