给定字符串的长度, 还有换行方式, 算出高度
1 UIFont * font = [UIFont systemFontOfSize:14]; 2 3 CGSize size = [text sizeWithFont:font constrainedToSize:CGSizeMake(140, 1000)lineBreakModel:URLineBreakModelCHaracterWrap];
给定字符串的长度, 还有换行方式, 算出高度
1 UIFont * font = [UIFont systemFontOfSize:14]; 2 3 CGSize size = [text sizeWithFont:font constrainedToSize:CGSizeMake(140, 1000)lineBreakModel:URLineBreakModelCHaracterWrap];
转载于:https://www.cnblogs.com/W-Kr/p/5215106.html