【问题标题】:Swift - SWRevealViewController menu placed after the status barSwift - SWRevealViewController 菜单放置在状态栏之后
【发布时间】:2017-07-16 21:52:06
【问题描述】:

我正在使用 SWRevealViewController 菜单,并且我有一个表格的标题视图。可以看到表控制器视图结构和约束:

这就是我的菜单的样子

但我需要它像

我试过了:

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

但什么都没有改变。

【问题讨论】:

  • 尝试使用普通的 UIViewController,并调整 tableView 的约束手动检查链接到视图的顶部约束而不是顶部布局指南,希望这对你有帮助,让我知道
  • @ReinierMelian 它按预期工作:) 谢谢。
  • 我将我的评论作为答案发布,以避免这个问题仍然没有答案。

标签: ios swift statusbar swrevealviewcontroller


【解决方案1】:

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

希望对你有帮助,告诉我

【讨论】:

    猜你喜欢
    • 2015-11-11
    • 1970-01-01
    • 2017-04-08
    • 2015-08-19
    • 2014-02-08
    • 2015-12-09
    • 2021-11-08
    • 2014-02-03
    • 1970-01-01
    相关资源
    最近更新 更多