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

关于xib上约束 #350

Open Liyongcong opened 2 years ago

Liyongcong commented 2 years ago

1901636359619_ pic_hd 你好,如果这tableview的头部headerView布局我用xib去布局,在xib上去约束好最后一个控件距离底部view的距离,然后再用代码去重新设置 self.segmentationLab.sd_layout .leftSpaceToView(self, 0) .topSpaceToView(self.shufflingView, 15) .rightSpaceToView(self, 0) .heightIs(1); 下最后一个控件的布局,在使用你的[self setupAutoHeightWithBottomView:self.segmentationLab bottomMargin:0];这个方法,这个headerView会自动布局吗,求解答