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

uilabel上的性能问题 #267

Open vitasapple opened 6 years ago

vitasapple commented 6 years ago

UIlabel放在UIscrollview上,当UIlabel的内容很多,并且有很多换行符\n的时候,滑动scrollview就会非常的卡,最低掉帧掉到个位数,但是如果没有换行符的话就不会掉帧掉的太厉害,请问这是为什么呢,有办法优化吗

liujunliuhong commented 6 years ago

不要用scrollview,用tableview.headerView试试