ios - Swift - SWRevealViewController 菜单放置在状态栏之后

标签 ios swift statusbar swrevealviewcontroller

我正在使用 SWRevealViewController 菜单,并且我有一个表格的标题 View 。您可以看到表 Controller View 结构和约束:

enter image description here

这就是我的菜单的样子 enter image description here

但我需要它像enter image description here

我试过了:

self.profileHeader.frame = CGRect(x: 0, y: -20, width: profileHeader.frame.width, height: profileHeader.frame.height + 20)

但没有任何改变。

最佳答案

尝试使用普通的 UIViewController,并手动调整 tableView 的约束检查链接到 View 而不是顶部布局指南的顶部约束

希望对你有帮助,让我知道

关于ios - Swift - SWRevealViewController 菜单放置在状态栏之后,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42466180/

相关文章:

android - android 4.4 的标签和半透明状态栏/导航出现问题

ios - 使用 XCTest 访问自定义 UIView 中的后代控件

iphone - 动画移动和旋转 UIView 不太有效

swift - 解析基于 URL 路径的 Rest API

ios - 删除关系对象时更新 NSFetchedResultsController 对象

ios - 无法在后台使用应用程序保持 GPS 事件,或在前台或后台使用应用程序读取位置

iOS Storyboard : Statusbar color

ios - 状态栏从多个打开的应用程序返回到上一个应用程序

ios - Swift - 如何关闭模态然后转到另一个 View Controller ?

ios - map 搜索结果显示在表格中