xcode - iOS 7 - 调整状态栏

标签 xcode interface-builder autolayout ios7

我无法确定如何调整 iOS7 中的状态栏。我的 View Controller 有一个 tableView ,我想要 tableView在状态栏下开始。目前,它被状态栏重叠。 (顶部的标签是 headerView 中的 tableView )。

enter image description here

我已经通过 IB 在我的 View Controller 上设置了属性,如下所示:

automaticallyAdjustsScrollViewInsets = YES
edgesForExtendedLayout = UIRectEdgeNone

enter image description here

这些状态栏设置的预期行为是否与 tableView 重叠?或者我错过了什么?我尝试启用自动布局,并将项目设置更改为仅支持 iOS 7。

最佳答案

解决方法是在IB的Extend Edges部分勾选“Under Top Bars”和“Under Opaque Bars”。

关于xcode - iOS 7 - 调整状态栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18939071/

相关文章:

iphone - XCode 4 没有显示我的新应用程序的智能?

iphone - 如何使 UIWebView 滚动得更快?

swift - 无法使用 Interface Builder 将单元格添加到 UICollectionView

iphone - UITableView titleForSection 字体

IOS 在 IOS 7 和 IOS 8 版本上给出了意外的宽度值

objective-c - 从较长的 NSString 返回一个自动换行的 NSString

xcode - 在 Storyboard中使用浮点值

ios - 本地化无法更新 Storyboard RTL(从右到左)以支持乌尔都语

iOS 自动布局 - 如何在旋转时拥有一个粘性 subview (如 native 相机应用程序)?

ios - 当前 View Controller 嵌入在导航 Controller 中,与选项卡栏 Controller 模态分开