I need to render a web page offscreen to a bitmap, then show the bitmap to the user. Can this be done with simple code on the main thread like this:
NSString *urlAddress = @"http://www.google.com";
NSURL *url = [NSURL URLWithString:urlAddress];
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
[offscreenWebView loadRequest:requestObj];
Or do I need to attach the UIWebView to an active view?
In Android, the web view seems not to render unless it is part of an active view. So to do this task in Android, I need to create a view hierarchy, create an active view for the web renderer, and then put another view on top of it to let it draw offscreen.