【问题标题】:SVRevealViewController does wrong offset from the top layout guideSWRevealViewController 从顶部布局指南偏移错误
【发布时间】:2016-10-27 20:05:06
【问题描述】:

我有一个简单的SearchViewController,左上角有菜单按钮。

使用SVRevealViewController我自动设置前视图控制器。

它的工作原理如下:

但稍后在此控制器的操作中,我再次使用以下方式加载此控制器:

revealViewController().setFrontViewController(UIStoryboard(name: "Search", bundle: nil).instantiateInitialViewController(), animated: true)

然后它看起来像下面这样:

这是错误的。为什么会这样?

我的 Search.storyboard 是一个PageViewController,有两种类型的页面。首先是我的SearchViewController

【问题讨论】:

    标签: ios swift swrevealviewcontroller


    【解决方案1】:

    只需使用pushFrontViewController 而不是setFrontViewController

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-24
      • 1970-01-01
      • 2014-06-23
      相关资源
      最近更新 更多