Skip to content Skip to sidebar Skip to footer

Objective C - UIWebview To Load Only A Certain Part Of The Webpage?

I am working with a UIWebview, is there anyway I can just load just the body of a webpage instead of the entire webpage with my UIWebView (aka not load the header and footer)? This

Solution 1:

With Web-Kit you can parse the incoming HTML and do whatever you like to it (within, legal rights to the site you are reading)

Once the data is loaded in you can then push the edited HTML to the WKView fairly easily.

If you have an outlet to the webView you can do: (For example a UIWebView in iOS)

[webView loadHTMLString:htmlString baseURL:nil];
[webView setNeedsDisplay];

Post a Comment for "Objective C - UIWebview To Load Only A Certain Part Of The Webpage?"