iPhone/iPad webview - Event fired after HTML is rendered?
I have a webView which displays a local html file loaded with jQuery etc. The page takes about 2 seconds to render.
Is there an event in the WebViewDelegate that says, "The p开发者_如何学JAVAage is rendered"?
Once I pass the HTML to the webview control returns immediately as the webview sets off working to render in som background task.
I need to know when it's done.
You're looking for webViewDidFinishLoad
. Here's Apple's documentation: UIWebViewDelegate Protocol Reference.
精彩评论