Problem in drawing UIWebView layer
<p>I want to get the layer of UIWebView then I want to render it. This is my code:</p>

<pre><code>webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 44, 700, 1024)];
[webView loadHTMLString:@"Display This HTML String" baseURL:nil];

CALayer *webViewLayer = [webView layer];
[webViewLayer renderInContext:ctx];
</code></pre>

<p>All I am getting is blank page. </p>

<p>but if I take UIView instead of UIWebView then code works fine.
Am I doing something wrong which I am not able to notice or cant we get the layer of UIWebView or is there any other method for getting the layer of UIWebView.</p>

<p>Thanx.</p>
