I need to display a webpage on screen in a bitmap and then show the bitmap for the user. This can be done using simple code in the main thread, for example:
NSString *urlAddress = @"http://www.google.com"; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [offscreenWebView loadRequest:requestObj];
Or do I need to connect the UIWebView to the active view?
In Android, the web view does not seem to be displayed unless it is part of the active view. Therefore, to complete this task in Android, I need to create a hierarchy of views, create an active view for the web renderer, and then add another top view so that it can display the screen.
source share