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

您好,cell的高度自适应中,cell内内容是根据富文本的高度自动适应,出现了高度计算不正确 #278

Open LYluyu opened 6 years ago

LYluyu commented 6 years ago

您好,在使用cell的高度自适应中,我的cell内容根据Label的富文本决定的,若TableView通过alloc init来创建,在iOS 8和iOS 9会出现cell的高度计算不正确,如果通过xib或者SB添加一个TableView就不会出现这个问题,Label的isAttributedContent = YES;已经设置,具体请看我demo,demo链接如下: https://github.com/LYluyu/SDAutoLayoutDemo

ange521 commented 6 years ago

请问你解决了吗

yehuaqiang commented 6 years ago

修改

LYluyu commented 6 years ago

楼上的大哥,还是不行啊

yehuaqiang commented 6 years ago

哪里不可以啊@LYluyu

LYluyu commented 6 years ago

我把你发的代码复制了进去了呀,但是在iOS8上运行还是一样的呀

LYluyu commented 6 years ago

能否发一份你修改好的demo给我看看,我邮箱:76814394@qq.com,谢谢啦

yehuaqiang commented 6 years ago

我加你QQ吧demo太麻烦了@LYluyu

yehuaqiang commented 6 years ago

加不了你@LYluyu

LYluyu commented 6 years ago

抱歉哈,那加这个QQ:84536104@yehuaqiang