MSSimpleGauge
MSSimpleGauge copied to clipboard
NSAutoresizingMaskLayoutConstraints warning in iOS8
Using the MSAnnotatedGauge in a iOS8 project, a message appears: "Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) ( "<NSLayoutConstraint:0x7fa5588afba0 V:|-(5)-[UILabel:0x7fa5588ade20] (Names: '|':MSAnnotatedGauge:0x7fa5588ac020 )>", "<NSLayoutConstraint:0x7fa5588afdc0 V:[UILabel:0x7fa5588ade20(12)]>", "<NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>", "<NSLayoutConstraint:0x7fa5588affc0 V:[UILabel:0x7fa5588ae800'3,74'(32)]>", "<NSAutoresizingMaskLayoutConstraint:0x7fa5588e6380 h=--& v=--& UILabel:0x7fa5588ae800'3,74'.midY == + 39>" )
Will attempt to recover by breaking constraint <NSLayoutConstraint:0x7fa5588afd10 V:[UILabel:0x7fa5588ade20]-(0)-[UILabel:0x7fa5588ae800'3,74']>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful."
Any idea? Thanks
That looks like a generic auto layout error. Is the list of constraints really a list of empty strings? Did you try to remove all of the outside constraints that you may be placing on the gauge view to make sure that it is the gauge that is causing the issue and not the ones you added as part of your application?