Hi guys,
I want to get the layer of UIWebView then I want to render it. This is my 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];
All I am getting is blank page.
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.
Thanx.