I want to set height of UIWebview based on HTML content. I am getting the size of a string, but not getting the actual size due to paragraph, bold, different font size, etc.
Ios – How to set height of UIWebView based on html content
iosipadiphoneuiwebview
Best Answer
I usually use these methods, to set
UIWebview
frame as it's content size:They are automatically called (if you set
webView
's delegate to this class), whenWebView
has finished loading it's content.