As far as I know, the best solution for this is to use UIWebView instead of UILabel. You just need to format the HTML to load it, and then add whatever you want to add after.
Example:
[webView loadHTMLString:[NSString stringWithFormat:@"<html><body><font face=\"arial\" size=\"2\">%@</font><font face=\"arial\" size=\"1\"> %@</font></body></html>",text1 , text2] baseURL:nil];
If you want to continue using UILabel / UITextView / any UIView, I only know a way to determine the height correctly: [myView sizeToFit]; And then get it.
Hope this helps.
Hi,
George
source share