ios - 导航栏在 iOS 应用程序中位于状态栏下方

标签 ios xcode swift swift2 xcode7

我有一个 TableView 、导航栏和左栏按钮,如下图所示: enter image description here

当我运行应用程序时,导航栏进入状态栏下方,如下图所示:

enter image description here

有什么解决办法吗?

我正在使用 swift 2.0 和 Xcode 7.3.1 进行编码

最佳答案

如果你想同时使用导航 Controller 和标签栏 Controller ,你应该在导航 Controller 中嵌入标签栏。

请参阅下面的堆栈帖子:

Using tabbar and navigation bar together

关于ios - 导航栏在 iOS 应用程序中位于状态栏下方,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38025382/

相关文章:

iphone - 带有 Storyboard的 UITableViewController 子类

ios - 如何从 'http://country.io/names.json' 获取字典和数组

ios - 无法通过模拟器和一般情况找出内存泄漏测试

当源文件在依赖静态库中更新时,Xcode 不会重建应用程序

ios - 当我添加 self.init(url : url)?

ios - 导航栏上按钮的大小 Xcode9.4

ios - 我如何在导航 Controller 中从下到上呈现/关闭 View Controller ?

ios - 标签栏 Controller : Add/Remove from Array

ios - 将 UIDatePicker Timezone 设置为模拟器的当前时区

swift - 如何为动画中的单个 SKTextures 设置持续时间