Upvote:7

Aprove answer
RTLabel *someLabel = [[RTLabel alloc] init];
someLabel.frame = CGRectMake(0.f, 0.f, 300.f,100.f);
someLabel.text = @"<p>Some <b>HTML</b></p>";
CGSize optimumSize = [someLabel optimumSize];
someLabel.frame = CGRectMake(0.f, 0.f, 300.f,optimumSize.height);

Upvote:0

CGFloat height = CGRectGetHeight(rtLabel.bounds)

Credit Goes to: stackoverflow.com

Related question with same questions but different answers