UIWebView delay in loading local content

前端 未结 2 1579
自闭症患者
自闭症患者 2021-01-12 14:42

I\'m displayed a small amount of local content in a UIWebView, roughly 3 paragraphs of text and one 100x100px image. When the UIWebView is pushed onto to the nav controller,

2条回答
  •  死守一世寂寞
    2021-01-12 15:07

    You're going to make the user wait, the only question is: is it before or after the webview appears? If you're set on "before", then you should create the controller, load the web view, but wait to push it until the -webViewDidFinishLoad: delegate method fires. Once you receive that, you can push the view.

提交回复
热议问题