SDAutoLayout icon indicating copy to clipboard operation
SDAutoLayout copied to clipboard

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

Results 104 SDAutoLayout issues
Sort by recently updated
recently updated
newest added

布局代码如下: label.sd_layout .autoHeightRatio(0) .leftSpaceToView(self.contentView, 34) .topSpaceToView(titleLab, 35) .rightSpaceToView(self.contentView, 34) .minWidthIs(300); 我已经设置了minWidthIs,可是单行富文本label的宽度仍然是自适应,并且没有居中对齐,是哪里的问题呢?

swift使用错误信息。[self.modelCell setValue:model forKey:keyPath] cell添加了@objcMembers model中也添加了@objcMembers 可还是一直报错 请问有办法解决吗

![1901636359619_ pic_hd](https://user-images.githubusercontent.com/13864468/140844621-555f5eeb-57a2-497e-aa6e-0597fabb47ae.jpg) 你好,如果这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会自动布局吗,求解答

升级了一些第三方,因为依赖了静态库,所以Podfile 文件#use_frameworks! 结果 整个App 布局失效了 开发工具是Xcode12.1 SD版本为2.2.1

此方法为什么一直在被调用

'SDAutoLayoutModel' has different definitions in different modules; defined here 没有更新最新版xcode之前一直通过清除缓存可以解决该报错,更新最新版后,一直报错这个文件,想知道有没有什么好的解决办法 目前有大佬在交流群里吗?可以拉我进去讨论下这个问题吗?谢谢拉! QQ:553559555

使用masonry在设置能够正常翻转,但是使用SDAutoLayout设置这个好像就没啥用 [UIView appearance].semanticContentAttribute = UISemanticContentAttributeForceRightToLeft; [UISearchBar appearance].semanticContentAttribute = UISemanticContentAttributeForceRightToLeft;

如题,类似Masonry的greaterThanOrEqualTo的方法

我使用的是富文本给Label 负值 。先赋值 后布局 _currentPriceLab.sd_layout .topSpaceToView(_twoNumView, 7 * heightRatio1280) .heightIs(23 * heightRatio1280) .widthIs(105 * widthRatio720) .centerXEqualToView(_twoNumView); _currentPriceLab.backgroundColor = [UIColor blueColor]; 宽度直接写的话是没有问题的 //[_currentPriceLab setSingleLineAutoResizeWithMaxWidth:115 * widthRatio720]; 如果这样写就会显示不完 出现省略号 label 明显变短