0

I am loading an html file in to an UIWebView. Now I want to know that is there any way I can get height of the contents being load in the UIWebView?

Thanks in advance

1 Answer 1

2
[[webView stringByEvaluatingJavaScriptFromString:@"document.body.offsetHeight"] integerValue];

Try this site for document.body.offsetHeight alternatives. The best choice probably depends on your page, what you want to measure and when you are measuring.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.