UIVisualEffectView throws constraint error
| Originator: | Ianpmcclure | ||
| Number: | rdar://24426241 | Date Originated: | 30 Jan 2016 |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK | Product Version: | iOS 9.2 (13C75) |
| Classification: | Reproducible: | Always |
When the extended status bar get invoked UIVisualEffectViews throw a constraint error.
This happens if the visual effect view was created in IB or in code.
2016-01-30 14:11:47.258 barweight[4235:2260710] 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.
(
"<NSLayoutConstraint:0x147ef8e80 V:|-(20)-[UIInputSetContainerView:0x147e9dbe0] (Names: '|':UITextEffectsWindow:0x147d195f0 )>",
"<NSLayoutConstraint:0x147d87170 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x147e9dbe0] (Names: '|':UITextEffectsWindow:0x147d195f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x147ef8e80 V:|-(20)-[UIInputSetContainerView:0x147e9dbe0] (Names: '|':UITextEffectsWindow:0x147d195f0 )>
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.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
Related: http://www.openradar.me/24911739 http://www.openradar.me/24764160