1.
YYTextLayout*textLayout = [YYTextLayout layoutWithContainer:containertext:muText];
如果mutext中的text轉(zhuǎn)化前的NSString中含有換行符,會導(dǎo)致YYTextLayout計(jì)算錯誤,最好先轉(zhuǎn)化為NSAttributedString在添加換行符。
1.
YYTextLayout*textLayout = [YYTextLayout layoutWithContainer:containertext:muText];
如果mutext中的text轉(zhuǎn)化前的NSString中含有換行符,會導(dǎo)致YYTextLayout計(jì)算錯誤,最好先轉(zhuǎn)化為NSAttributedString在添加換行符。