且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

UIWebView 加载本地内容的延迟

更新时间:2021-07-25 04:48:59

你要让用户等待,唯一的问题是:是在webview出现之前还是之后?如果您设置为之前",那么您应该创建控制器,加载 Web 视图,但等待推送它,直到 -webViewDidFinishLoad: 委托方法触发.收到后,您可以推送视图.

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.