UIView *vi = [UIView new]; vi.backgroundColor = [UIColor redColor]; [self.view addSubview:vi]; vi.sd_layout .leftSpaceToView(self.view,20) .rightSpaceToView(self.view,20) .topSpaceToView(self.view,30) .bottomSpaceToView(self.view,20);
时间: 2024-11-13 09:29:47