iOS 6+ : UITableViewController embedded into Navigation Controller shows table's first section header under status bar when Navigation Bar is hidden

标签 ios objective-c uitableview statusbar xcode-storyboard

我希望我的状态栏被绘制在 UITableView 的第一节标题上,就像在 picture 中一样. (假设粉红色的上部码头是第一节标题 View )

我正在为 iOS 6.0+ 开发应用程序。

相应的 UITableViewController 是我的导航层次结构中的根 VC。如何实现?

最佳答案

在 Interface Builder 中选择 View Controller ,并取消选中“Extend Edges: Under Top Bars”复选框

enter image description here

关于iOS 6+ : UITableViewController embedded into Navigation Controller shows table's first section header under status bar when Navigation Bar is hidden,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29236669/

相关文章:

ios - 自定义 UITableView - iOs

iOS 5 电话链接无法使用

ios - 如何创建一个谓词,其中 % 在 ios 中作为字符串工作

ios - 如何检查 UIButton 是否有目标?

ios - NSDateFormatter 没有给出预期的结果

ios - 用户好友列表tableview为空解析查询未返回任何数据

iphone - 连接过程后设置部分的标题

ios - ScrollView 内的 LazyVStack 中具有可变高度的内容导致口吃/跳跃

objective-c - 如何跟踪 Xcode 程序崩溃的位置

iOS Facebook SDK "An active access token must be used to query information about the current user."