平台:iOS XCode langugae:Objective-C的 当状态栏高度为40px时,我们运行代码,错误发生如下
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:0x7fe903dd5940 UIInputSetContainerView:0x7fe903dd2e50.top == UITextEffectsWindow:0x7fe903e554b0.top + 20>,
<NSLayoutConstraint:0x7fe903d82c00 UIInputSetContainerView:0x7fe903dd2e50.top == UITextEffectsWindow:0x7fe903e554b0.top>
]
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fe903dd5940 UInputSetContainerView:0x7fe903dd2e50.top == UITextEffectsWindow:0x7fe903e554b0.top>
那我该怎么办?AppDelegate的窗口改变了位置。