CooperRS / RMPickerViewController

This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner
MIT License
381 stars 51 forks source link

Constraints problem when showing / dismissing #25

Closed alejandroluengo closed 9 years ago

alejandroluengo commented 9 years ago

The Picker gives a constraints warning when showing and dismissing the view, and it also shows a dirty line when it closes

captura de pantalla 2015-03-23 a las 10 20 58

2015-03-23 10:21:42.915 RMPickerViewController-Demo[4943:195982] 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:0x7fa449556c50 V:|-(10)-[UILabel:0x7fa449549cc0'This is an example title....'] (Names: '|':_UIVisualEffectContentView:0x7fa449552040 )>", "<NSLayoutConstraint:0x7fa449556ca0 V:[UILabel:0x7fa449549cc0'This is an example title....']-(10)-| (Names: '|':_UIVisualEffectContentView:0x7fa449552040 )>", "<NSLayoutConstraint:0x7fa449556120 V:[UIVisualEffectView:0x7fa449553d70]-(10)-[UIVisualEffectView:0x7fa449552480]>", "<NSLayoutConstraint:0x7fa449556170 V:[UIVisualEffectView:0x7fa449552480(44)]>", "<NSLayoutConstraint:0x7fa4495561c0 V:[UIVisualEffectView:0x7fa449552480]-(0)-| (Names: '|':UIView:0x7fa44954ecb0 )>", "<NSLayoutConstraint:0x7fa449556210 V:[UIVisualEffectView:0x7fa449553d70(216)]>", "<NSLayoutConstraint:0x7fa449556a50 V:|-(0)-[UIVisualEffectView:0x7fa449552940] (Names: '|':UIView:0x7fa44954ecb0 )>", "<NSLayoutConstraint:0x7fa449556aa0 V:[UIVisualEffectView:0x7fa449552940]-(10)-[UIVisualEffectView:0x7fa449553d70]>", "<NSAutoresizingMaskLayoutConstraint:0x7fa44980b570 h=-&- v=-&- _UIVisualEffectContentView:0x7fa449552040.height == UIVisualEffectView:0x7fa449551030.height>", "<NSAutoresizingMaskLayoutConstraint:0x7fa4498045c0 h=-&- v=-&- UIVisualEffectView:0x7fa449551030.height == _UIVisualEffectContentView:0x7fa4495413d0.height>", "<NSAutoresizingMaskLayoutConstraint:0x7fa44985a980 h=-&- v=-&- _UIVisualEffectContentView:0x7fa4495413d0.height == UIVisualEffectView:0x7fa449552940.height>", "<NSLayoutConstraint:0x7fa4497cf810 UIView:0x7fa44954ecb0.bottom == UIView:0x7fa449440060.bottom - 10>", "<NSLayoutConstraint:0x7fa4497d4420 V:[UIView:0x7fa449440060]-(0)-[UIView:0x7fa44954ecb0]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x7fa449556ca0 V:[UILabel:0x7fa449549cc0'This is an example title....']-(10)-| (Names: '|':_UIVisualEffectContentView:0x7fa449552040 )>

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. 2015-03-23 10:21:42.916 RMPickerViewController-Demo[4943:195982] 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:0x7fa449556120 V:[UIVisualEffectView:0x7fa449553d70]-(10)-[UIVisualEffectView:0x7fa449552480]>", "<NSLayoutConstraint:0x7fa449556170 V:[UIVisualEffectView:0x7fa449552480(44)]>", "<NSLayoutConstraint:0x7fa4495561c0 V:[UIVisualEffectView:0x7fa449552480]-(0)-| (Names: '|':UIView:0x7fa44954ecb0 )>", "<NSLayoutConstraint:0x7fa449556210 V:[UIVisualEffectView:0x7fa449553d70(216)]>", "<NSLayoutConstraint:0x7fa449556a50 V:|-(0)-[UIVisualEffectView:0x7fa449552940] (Names: '|':UIView:0x7fa44954ecb0 )>", "<NSLayoutConstraint:0x7fa449556aa0 V:[UIVisualEffectView:0x7fa449552940]-(10)-[UIVisualEffectView:0x7fa449553d70]>", "<NSAutoresizingMaskLayoutConstraint:0x7fa4498045c0 h=-&- v=-&- UIVisualEffectView:0x7fa449551030.height == _UIVisualEffectContentView:0x7fa4495413d0.height>", "<NSAutoresizingMaskLayoutConstraint:0x7fa44985a980 h=-&- v=-&- _UIVisualEffectContentView:0x7fa4495413d0.height == UIVisualEffectView:0x7fa449552940.height>", "<NSLayoutConstraint:0x7fa4497cf810 UIView:0x7fa44954ecb0.bottom == UIView:0x7fa449440060.bottom - 10>", "<NSLayoutConstraint:0x7fa4497d4420 V:[UIView:0x7fa449440060]-(0)-[UIView:0x7fa44954ecb0]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x7fa449556120 V:[UIVisualEffectView:0x7fa449553d70]-(10)-[UIVisualEffectView:0x7fa449552480]>

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. 2015-03-23 10:21:42.921 RMPickerViewController-Demo[4943:195982] 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:0x7fa4497cf810 UIView:0x7fa44954ecb0.bottom == UIView:0x7fa449440060.bottom - 10>", "<NSLayoutConstraint:0x7fa4497d4420 V:[UIView:0x7fa449440060]-(0)-[UIView:0x7fa44954ecb0]>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x7fa4497d4420 V:[UIView:0x7fa449440060]-(0)-[UIView:0x7fa44954ecb0]>

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.

CooperRS commented 9 years ago

Which version of Xcode / iOS SDK are you using?

CooperRS commented 9 years ago

Is this problem still present on version 1.4.0 and above?

CooperRS commented 9 years ago

Closing due to no response