标签:os io line size app ios file ui
CGSize constraintSize;
constraintSize.width = 320;
constraintSize.height = MAXFLOAT;
CGSize sizeFrame =[infoTextView.text sizeWithFont:infoTextView.font = [UIFont systemFontOfSize:12.0] constrainedToSize:constraintSize lineBreakMode:NSLineBreakByWordWrapping];
infoTextView.frame = CGRectMake(10,titleLabel.frame.origin.y+titleLabel.frame.size.height,sizeFrame.width,sizeFrame.height+5);
注:这个方法在 textFiledView中不是非常精确
iOS textFiledView,label自适应高度,布布扣,bubuko.com
标签:os io line size app ios file ui
原文地址:http://www.cnblogs.com/Ewenblog/p/3884485.html