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

大佬看下我这样写有什么问题 #299

Open wdq123550 opened 5 years ago

wdq123550 commented 5 years ago

UIView *view1 = [[UIView alloc] init]; view1.translatesAutoresizingMaskIntoConstraints = NO; [self.view addSubview:view1]; view1.sd_layout.heightIs(100).spaceToSuperView(UIEdgeInsetsMake(84, 5, FLT_MAX, 5)); view1.backgroundColor = [UIColor redColor];

wdq123550 commented 5 years ago

不显示