If you want to know the desired height for a certain width , you can use the following code:
NSString *yourString = @"My great text o0"; CGSize s = [yourString sizeWithFont:[UIFont systemFontOfSize:12] constrainedToSize:CGSizeMake(width, MAXFLOAT) lineBreakMode:UILineBreakModeWordWrap];
Read more here
Nekto source share