Objective-c – How to get current scroll position on UIWebView


I have a UIWebView And how can i get It's scroll position ?

I know, that UIWebView has a UIScroller subview. But I can't get offset of this UIScroller (((

Best Solution

There is a better and more resource-friendly way to do this:

UIWebView *webView;
CGFloat offset = webView.scrollView.contentOffset.y;

via http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebView_Class/Reference/Reference.html