IPhone SDK Automatically scroll UIWebView to a specific position

I have a UIWebView that displays a third-party web page (and not a page that I can control)
I need a way to scroll the contents of the web view to a specific position on this page.
Any idea how to implement it?

Thank.

+3
source share
1 answer

Well, I hate answering my own question, but it was easier than I thought ...

[webView stringByEvaluatingJavaScriptFromString: @ "window.scrollBy (0,180);" ];

+12
source

Source: https://habr.com/ru/post/1743044/


All Articles