CGSize textViewSize = [text sizeWithFont:[UIFont fontWithName:@"Marker Felt" size:20] 
                       constrainedToSize:CGSizeMake(WIDHT_OF_VIEW, FLT_MAX) 
                       lineBreakMode:UILineBreakModeTailTruncation];



http://stackoverflow.com/questions/7401445/how-to-set-height-of-uitextview-according-to-its-content-in-objective-c

Posted by tenn
,