Default Auto Layout Constraints are violated in Split View mode
| Originator: | imgx64 | ||
| Number: | rdar://24764160 | Date Originated: | 2016-02-22 |
| Status: | Duplicate | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 9.2.1 (13D15), XCode 7.2.1 (7C1002) |
| Classification: | 2 - Important | Reproducible: | Always |
Summary:
When a Universal app is launched in Split View mode on iPad Mini 4, an Auto Layout Constraint violation is logged to the console.
Steps to Reproduce:
1- On an iPad Mini 4, open two apps in Split View mode (IMPORTANT: Make sure they're in Split View mode, NOT Slide Over mode).
2- Using XCode on OS X, create a new Universal Single View Application (or use the attached project).
3- Run the app on the iPad Mini 4.
4- Open the Console window in XCode, you'll see this:
2016-02-22 08:51:12.250 demo3[387:28313] 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:0x12d52d760 V:|-(20)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>",
"<NSLayoutConstraint:0x12d621320 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x12d52d760 V:|-(20)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>
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.
Expected Results:
No error should be displayed in the Console.
Actual Results:
The following is displayed in the Console:
2016-02-22 08:51:12.250 demo3[387:28313] 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:0x12d52d760 V:|-(20)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>",
"<NSLayoutConstraint:0x12d621320 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x12d52d760 V:|-(20)-[UIInputSetContainerView:0x12d5283c0] (Names: '|':UITextEffectsWindow:0x12d526930 )>
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.
Version:
iOS 9.2.1 (13D15), OS X 10.11.3, XCode 7.2.1 (7C1002)
Notes:
Configuration:
iPad Mini 4, connected by USB-to-Lightning cable to Mac mini (Late 2014)
Attachments:
'demo3.zip' was successfully uploaded.
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!
Apple Developer Relations
Duplicate of 21732984 (Open)
Engineering has determined that your bug report is a duplicate of another issue and will be closed.
The open or closed status of the original bug report your issue was duplicated to appears in the yellow "Duplicate of XXXXXXXX" section of the bug reporter user interface. This section appears near the top of the right column's bug detail view just under the bug number, title, state, product and rank.
If you have any questions or concerns, please update your report directly here: http://bugreport.apple.com/.
Related: http://www.openradar.me/24911739 http://www.openradar.me/24426241