In any case, to determine the height of a UIWebView outside of webViewDidFinishLoad :?

I have UIWebViewinside a UITableViewCell. Cell height is based on the height of the web view, so I need to know how high the web view is after loading the HTML string into it.

In any case, to determine the height of the web view before being called webViewDidFinishLoad:?

+3
source share
1 answer

I am afraid there is no way. webViewDidFinishLoad:called as soon as HTML is fully loaded. To determine the height, the HTML must be fully displayed by the UIWebView. And it can only begin after that HTML has been loaded.

. webViewDidFinishLoad:, HTML, , HTML , webViewDidFinishLoad: .

, , .

0

All Articles