If we want to remove any section from webpage like header or footer than use the following code.
In the following code header and footer.footer are the tag identifier of html Class.
We have to use the appropriate tag of the control which we want to remove from the uiwebview.
use the following delegate of uiwebview.
- (void)webViewDidFinishLoad:(UIWebView *)webView {
[webView stringByEvaluatingJavaScriptFromString:@"$(document).ready(function() { $('header').remove(); })"];
[webView stringByEvaluatingJavaScriptFromString:@"$(document).ready(function() { $('footer.footer').remove(); })"];
}
0 Comment(s)