我有一个包含多个UIView子视图的UIView,每个子视图都有自己的约束。如何删除子视图的约束?
//only removes the constraints on self.view
[self.view removeConstraints:self.view.constraints];
//I get warning: Incompatible pointer types sending 'NSArray *' to parameter of type 'NSLayoutConstraint'
[self.subview1 removeConstraints:self.subview1.constraints];
subview1
添加 约束条件? - mbm29414subview1
是不是self.view
的直接子视图? - mbm29414