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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You would need to manipulate the DOM (Document Object Model) after the page has loaded in the
WebView. You can use theWebFrameLoadDelegatemethods 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.