Open myouzh opened 8 years ago
preferredMaxLayoutWidth
设置label了也不能换行
YYTextContainer _container = [YYTextContainer containerWithSize:CGSizeMake(self.width-2_lineSpace, MAXFLOAT)]; YYTextLayout *textLayout = [YYTextLayout layoutWithContainer:container text:text]; 是高度计算的问题
为啥非要加上
[text yy_appendString:@"\n"]; [text appendAttributedString:text]; 才可以?