【问题标题】:how to open the viewcontroller from the side menu(SWRevealviewcontroller) under the tab bar so that the tab bar should not be hidden at the bottom?如何从标签栏下的侧边菜单(SWRevealviewcontroller)打开视图控制器,使标签栏不应该隐藏在底部?
【发布时间】:2018-10-22 18:46:44
【问题描述】:

在我的例子中,我使用SWRevealViewController 作为侧边菜单,底部有标签栏。

当我尝试从侧面菜单打开另一个屏幕时,标签栏已从底部隐藏。当我从侧面打开另一个屏幕时,底部的标签栏应该是可见的。

我已尝试从侧面菜单迁移到另一个屏幕。

这几行代码写在sidemenu类中tablviewdidselect方法中:

if indexPath.row == 0
{
    performSegue(withIdentifier: "gamelist", sender: nil)
}
else if indexPath.row == 1
{
    performSegue(withIdentifier: "leaderboard", sender: nil)
}
else if indexPath.row == 2
{
    performSegue(withIdentifier: "IGL_STORE", sender: nil)
}
else if indexPath.row == 3
{
    performSegue(withIdentifier: "event", sender: nil)
}
else if indexPath.row == 4
{
    performSegue(withIdentifier: "IGLNews", sender: nil)
}
else if indexPath.row == 5
{
    performSegue(withIdentifier: "IGL_TV", sender: nil)
}
else if indexPath.row == 6//HOW TO PLAY
{
    // performSegue(withIdentifier: "IGL_Store", sender: nil)
}

有什么建议吗?

【问题讨论】:

    标签: ios swift4 tabbar


    【解决方案1】:

    我们需要一些关于如何初始化 SWRevealController 的代码,这里没有足够的信息让我们了解您的问题的原因。

    【讨论】:

      猜你喜欢
      • 2015-02-13
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-24
      相关资源
      最近更新 更多