How i can get height absolutely of NSString
, because I'm trying to do the following:
NSString *text = "Hello word, i'm a programer";
CGSize maximumSize = CGSizeMake(300, 9999);
UIFont *myFont = [UIFont fontWithName:@"Helvetica" size:12];
CGSize myStringSize = [text sizeWithFont:myFont
constrainedToSize:maximumSize
lineBreakMode:NSLineBreakByWordWrapping];
NSLog(@"myStringSize %f",myStringSize.height);
I find it in this site but I think it do not ok.