title: How to get proper scroll content size of UIWebView?
body: <p>I'm trying to get the UIWebView scroll content size inside <code>- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType</code>
  method so as to show an arrow image if horizontal scroll exists.</p>
  
  <p>1) I have tried <code>webView.scrollview.contentSize</code> to get the scroll content size but it is always giving me the webview frame values even if content size is more.</p>
  
  <p>2) I have tried </p>
  
  <pre><code>CGSize contentSize = CGSizeMake([[webView stringByEvaluatingJavaScriptFromString:@"document.body.scrollWidth;"] floatValue],
                                  [[webView stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight;"] floatValue]);
  </code></pre>
  
  <p>Even the above 2nd approach is not giving the proper content size.</p>
  
  <p>Is their a straight forward or screwed way of getting accurate webview's embedded scrollView's content size?</p>