当我通过在模拟器中按下Command + Y来显示"Call-in"状态栏时,我的应用程序突破了约束.它只在第一次出现呼入栏时发生.一切看起来都应该如此,但日志打印出以下内容:
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:0x7fb4cb9b2b60 V:|-(20)-[UIInputSetContainerView:0x7fb4cb9b1190] (Names: '|':UITextEffectsWindow:0x7fb4cba003f0 )>",
"<NSLayoutConstraint:0x7fb4cb942100 'UIInputWindowController-top' V:|-(0)-[UIInputSetContainerView:0x7fb4cb9b1190] (Names: '|':UITextEffectsWindow:0x7fb4cba003f0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7fb4cb9b2b60 V:|-(20)-[UIInputSetContainerView:0x7fb4cb9b1190] (Names: '|':UITextEffectsWindow:0x7fb4cba003f0 )>
Make …Run Code Online (Sandbox Code Playgroud) 如何根据笔尖的通话中状态栏调整视图大小?
我认为它只是设置调整大小属性,但它们没有为根UIView启用.
(我认为我的主要问题是我不知道这是什么调用;除了讨论模拟器菜单命令之外,我找不到任何文档中的调用状态栏的引用.)
我想询问有关自动布局和通话状态栏的信息.这是一个简单的场景,演示了我的问题:
表视图应具有4个布局约束(前导,顶部,尾部,底部)到Superview,常量设置为0.
现在,当我在模拟器中运行此应用程序并按⌘+时,T我可以看到红色背景,而在通话状态栏动画.是否有可能摆脱这个故障?