【问题标题】:UINavigationController's Toolbar should appear above contentUINavigationController 的工具栏应该出现在内容上方
【发布时间】:2014-05-03 16:58:28
【问题描述】:

我遇到的问题是我想让 UINavigationController 的工具栏出现在内容上。

现在,导航控制器内的子视图已调整大小以适应:V:|[myview][toolbar]|

但是,我希望拥有以下内容:V:|[myview]|,当然工具栏仍位于底部。

由于我使用的是navigationController 的工具栏,因此我对约束没有任何影响。

有没有人建议如何获得我想要的效果?

干杯

【问题讨论】:

    标签: ios uinavigationcontroller uitoolbar


    【解决方案1】:

    我想通了。我必须使用bottomLayoutGuide 而不是| 作为约束。

    因此,格式字符串应类似于V:[topLayoutGuide][myView][bottomLayoutGuide],其中topLayoutGuidebottomLayoutGuide 是“UIViewController”上相同的调用属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-10-09
      • 2011-07-15
      • 1970-01-01
      • 2016-07-12
      • 1970-01-01
      • 2015-06-01
      • 1970-01-01
      相关资源
      最近更新 更多