Open bobmoff opened 10 years ago
Totally agree. The height constraint is contained directly in the view set of constraint not in the superview set. I had warning for incompatible constraints because the height constraint was not found and you recreated a new one all the time.
I did the same thing as bobmoff and it solved my problem.
Yes sorry guys, I've no time to change this now. Cause When I fix this, that create other bugs. I will take a look on this later.
@CedricSoubrie I encouter the problems too,but if I remove the .superview,It crash when I call - (BOOL) setConstraintConstant:(CGFloat)constant forAttribute:(NSLayoutAttribute)attribute, how did you solved it? And it only happen in iOS 7,iOS 8 fine;
height constraint is contained on self, not superview