Hi
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 (((
Hi
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 (((
I don't think there is an official way. You may have to iterate through it's subviews until you find an object of the type UIScrollView
.
This trick works for me.
UIWebView *webView;
int scrollPosition = [[webView stringByEvaluatingJavaScriptFromString:@"window.pageYOffset"] intValue];