There are a few questions about this which has a solution regarding a script embedded in an html string. Not in my case.
I have an ios5 / 6 application. I tried putting the loading code in initWithNibName bad idea, viewDidLoad deprecated, so viewWillAppear remains.
- (void) viewWillAppear:(BOOL)animated { NSString* detailHtml = [Storage getDetailHtml: -1];
The problem with this code is blinking. It looks like a UIViewContoller, with a white webView than html is displayed after 1-2 seconds. HTML has some texts, but also has base64 encoded images, sometimes it is about 3 MB, even 5 MB of content. There is no javascript, just embedded CSS (without an external file), text and base 64 encoded images.
I could preload the detailHtml text, but I think it takes longer to render.
Is it possible not to display the ViewController until the webView has finished loading the html? - some callback?
Any suggestions?
user529543
source share