Is there a way to detect a string height dynamically? The string sometimes long enough to extend to 2 number of lines and sometimes it is only one line string.
CGRect frame = CGRectMake(8.0, kContentY, 200, 200);
UIWebView *tempwv = [[UIWebView alloc] initWithFrame:frame];
NSString *myHTML = @"<html><body><h1>Hello, world!</h1></body></html>";
[tempwv loadHTMLString:myHTML baseURL:nil];
NSLog(@"==========> %f", tempwv.scrollView.size.height);
[contView addSubview:tempwv];
I get 200px height which is the webview frame;