I need to detect if the scroll bar is visible in the UIWebView, how do I do this? My first attempt was:
int scrollHeight = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollHeight"] intValue];
if(scrollHeight > [webView frame].size.height)
NSLog(@"Scrollbar is visible");
But the scrollHeight
is always a way larger than the webView height.