ios - UIWebView is loading very slowly on the first time it is displayed in a specific UIViewController -
i have "product details" uiviewcontroller on storyboard has uiwebview display "rich text" (basically bold , italic). web view loaded using string (fetched coredata) loadhtmlstring. problem first time view displayed, there @ least 1 second delay before web view rendered. further "product details" views loaded load fine. first "product details" web view takes time load.
this have tried (with no joy)
- displaying
uiwebviewtext on first screen (to warm uiwebview) - when comes time show details view,
initweb view inprepare seguemethod , pass "product details" view controller. - i have tried various combinations of having web view in storyboard / not in storyboard / in scroll view etc
i interested if others have had problem , how got on / worked around it. find strange have not been able find many similar problems on so; must doing stupid...
note, using uiwebview can display rich text. understand can display rich text using other controls, program makes text want display can export rich text using html.
this common problem uiwebview. workaround make web view hidden (showing sort of "loading..." indicator instead), make un-hidden in webviewdidfinishload: method.
Comments
Post a Comment