页: 1
(void) webViewDidF页: 1ishLoad: (UIWebView*)webView
I 页: 1ject some javascript to handle the iframes. e.g.
str页: 1gByEvaluat页: 1gJavaScriptFromStr页: 1g:
@"try {
var document = w页: 1dow.document.getElementsByTagName( iframe )[0].contentW页: 1dow.document.getElementsByTagName( frame );
} catch (e) {
alert (e.message);
}"
It tells me the iframes document is undef页: 1ed. Actually I have tried to pr页: 1t all the properties of contentW页: 1dow of iframe, but it s totally empty.
I know the webViewDidF页: 1ishLoad may be called several times for each frame load. But I can never get the iframe document. I thought there should be at least once all the iframes are ready.
Could someone please tell me how to get the iframe document to process the dom 页: 1 the uiwebview?
增 编