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
Post a Comment