gsdios / SDAutoLayout

One line of code to implement automatic layout. 一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。The most easy way for autoLayout. Based on runtime.
MIT License
5.9k stars 1.28k forks source link

给label设置富文本后,cell的算高有问题 #157

Closed maple1994 closed 7 years ago

maple1994 commented 7 years ago

如题,设置行高后,cell的高度仍然保持之前高度,因此label显示不全,请问如何解决?

maple1994 commented 7 years ago

找到解决方案了,设置label.isAttributedContent = YES;即可

gsdios commented 7 years ago

YES!