NSLayoutConstraint-EquationsSwift 库
NSLayoutConstraint-Equations 是一种
view.addConstraint(Top(label) == 1 * Top(button) + 20) view.addConstraints(Top(label) == Top(button) |+ CenterX(label) == CenterX(self.view) |+ CenterY(label) == CenterY(self.view) |+ (Bottom(button) == Bottom(self.view) + 600)|10)
评论