Reputation: 652
I need to load an URL, but want to show only the contents inside a certain div and hide everything else on the website.
How can I do that?
Upvotes: 0
Views: 123
Reputation: 48
In you Webview you can inject JS. Like this you will be able to hide the content you want :)
Here's a link to help you : https://gist.github.com/irace/3688560
PS : if your app is iOS7 compatible as well, than look at this : http://iphoneincubator.com/blog/windows-views/how-to-inject-javascript-functions-into-a-uiwebview
Upvotes: 1