动态更新约束的时候老是提示有多余的约束,我使用update_contraits make_contraits 都不能解决,后来使用了remake_contraits才消除了告警。
view property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7fca10c4cd80 UIButton:0x7fca130543f0.leading == UIView:0x7fca10c08160.leading + 10>",
"<NSLayoutConstraint:0x7fca10c56800 CornerView:0x7fca10edd150.leading == UIButton:0x7fca130543f0.leading>",
"<NSLayoutConstraint:0x7fca10c08310 CornerView:0x7fca10edd150.trailing == UIButton:0x7fca10ed9310.trailing>",
"<NSLayoutConstraint:0x7fca10c253b0 UIView:0x7fca10c08160.trailing == UIButton:0x7fca10ed9310.trailing + 10>",
"<NSLayoutConstraint:0x7fca10c5fd70 UIView:0x7fca10c08160.leading == UIView:0x7fca10c52c20.(null) - 16>",
"<NSLayoutConstraint:0x7fca10c5fe10 UIView:0x7fca10c52c20.(null) == UIView:0x7fca10c08160.trailing - 16>",
"<NSLayoutConstraint:0x7fca1305adf0 UIView:0x7fca10c52c20.width == 320>",
"<MASLayoutConstraint:0x7fca10fb5360 UIView:0x7fca10edf2c0.width == CornerView:0x7fca10edd150.width * 0.998269>",
"<MASLayoutConstraint:0x7fca10c37490 UIView:0x7fca10edf2c0.width == CornerView:0x7fca10edd150.width>"
)