Open wdq123550 opened 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];
不显示
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];