相关疑难解决方法(0)

| - (20) - 当呼入状态栏可见时,[UIInputSetContainerView约束会中断

当我通过在模拟器中按下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)

objective-c ios ios9

33
推荐指数
1
解决办法
3980
查看次数

调整通话状态栏的大小?

如何根据笔尖的通话中状态栏调整视图大小?

我认为它只是设置调整大小属性,但它们没有为根UIView启用.

(我认为我的主要问题是我不知道这是什么调用;除了讨论模拟器菜单命令之外,我找不到任何文档中的调用状态栏的引用.)

iphone statusbar uiview

23
推荐指数
5
解决办法
3万
查看次数

自动布局和通话状态栏

我想询问有关自动布局和通话状态栏的信息.这是一个简单的场景,演示了我的问题:

  1. 创建启用了"使用故事板"的项目
  2. 添加"View Controller"并启用其"是初始视图控制器"
  3. 将控制器视图的背景颜色设置为红色
  4. 将"表视图"添加到控制器的视图中

表视图应具有4个布局约束(前导,顶部,尾部,底部)到Superview,常量设置为0.

现在,当我在模拟器中运行此应用程序并按+时,T我可以看到红色背景,而在通话状态栏动画.是否有可能摆脱这个故障?

uiviewcontroller ios uistatusbar autolayout

15
推荐指数
2
解决办法
9576
查看次数