UIWebView delayed displaying of content
I'm displaying paginated text using UIWebView per page inside a UIScrollView. As the user swipes off the last page of a section I load the next section generate the new pages and add them to the UIScrollView removing the previous pages.
All working nicely except; The new UIWebView will not show its content immediately, there is a variable time delay with a blank page being show before the content shows up. This can be up to 5 seconds.
The content is coming from a string and loaded using loadHTMLString.
webViewDidFinishLoad is not triggered but I presume this is because it is not for content loaded directly.
I've tried triggering a reload and setNeedsDisplay with no affect.
I also made sure that the UIWebView is actually visible before loading the content - to no avail.
I'm now tearing my hair out!!!!
|