iphone - Is there a clever way to figure out what size a UIWebview needs to be to hold all text -


i page full of info server via json. there lot of info , different parts info, images, text, graphs etc. display inside uiscrollview whole page can scroll. html want display inside uiwebview. have html before create uiwebview can change height of uiwebview contain text without uiwebview needing scroll. can vary in length each time new load of data server cant hardcore height needs be.

so question is. given have nsstring holding html. there way calculate how high uiwebviews frame needs be, contain html without having scroll.

hope understand question kinda long :)

thanks, -code

if it's ok resize webview (and parent scroll view's contentsize property) after html finishes loading, can use javascript query rendered height of html , use that. see ipad - find true height of uiwebview


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -