currently loading a URL like Google.com into my web view like so
[webView setMainFrameURL:@"http://google开发者_如何学编程.com"];
How can I append html to that like "<h1>End of page</h1>
"?
Thanks
You would need to manipulate the DOM (Document Object Model) after the page has loaded in the WebView
. You can use the WebFrameLoadDelegate
methods to determine when the page has loaded successfully.
To manipulate the DOM, you can use Objective-C via the various DOM manipulation classes or you can use JavaScript.
精彩评论