+1  A: 

On "webViewDidFinishLoad:(UIWebView *)webView", you can get the height of document by this

int height = [[webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.clientHeight;"] intValue]; 

Then you can readjust your UIWebView frame

Ho Ha
Can you please tell me how to execute this statement..when i tried it is giving me 0, and can yoy please tell me how to get the webview width using java script?
chaitanya
I am currently doing the same but this solution doesn't work out well as sometimes the last line is partially visible .I need a JavaScript function to calculate properly visible text for a limited height.
Farhan