Quote:
Originally Posted by JerryWho49
Did you have any solution for this problem? I'm having the same one 
|
You might need to calculate the height of the textField based on the width, and size its frame accordingly. That is how I accomplish that... I used this method to do it.
Code:
-(CGSize) calcLabelSize:(NSString *)string withFont:(UIFont *)font maxSize:(CGSize)maxSize{
return [string
sizeWithFont:font
constrainedToSize:maxSize
lineBreakMode:UILineBreakModeWordWrap];
}