我有一个包含多个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];
Run Code Online (Sandbox Code Playgroud)