I have a "product details" UIViewController
on my storyboard which has a UIWebView
to display "rich text" (basically bold and italic). The web view is loaded using a string (fetched from CoreData
) loadHTMLString
. The problem is that the first time the view is displayed, there is at least a one second delay before the web view is rendered. Further "product details" views that are loaded all load fine. It is only the first "product details" web view which takes the time to load.
This is what I have tried (with no joy)
- Displaying a
UIWebView
with text on the first screen (to warm up the UIWebView) - When it comes time to show the details view,
init
the web view in theprepare for segue
method and pass it to the "product details" view controller. - I have tried various combinations of having the web view in the storyboard / not in the storyboard / in a scroll view etc
I would be very interested if others have had this problem and how they got over it / worked around it. I find it strange I have not been able to find many similar problems on SO; I must be doing something stupid...
Note, I am using a UIWebView so I can display rich text. I understand I can display rich text using other controls, but the program that makes the text that I want to display can only export rich text using HTML.