【发布时间】:2018-03-02 19:26:17
【问题描述】:
我正在使用 SWRevealController 有一个侧边菜单。在我的应用程序中,它也有 UITabBarcontroller。 我的连接格式为 SWRevealViewController--->UItabbarController--->NavigationController--->UITabbartemPage-->Another vc
PLEASE CLICK ON THE IMAGE TO SEE IN CORRECT ORIENTATION
上面的显示是我正在使用的布局。我想在几乎所有从 tabbarcontroller 显示的 vc 中都有那个汉堡按钮(菜单按钮)。目前,当我点击按钮时,我正在获取侧面菜单(图像在右侧显示为 spereate)。在选择菜单时,它会显示所需的 vc,但底部标签栏不存在。我想在整个页面中都有底部标签栏,也可以在侧面菜单的页面中。
我怎样才能做到这一点?请帮帮我。
我在 didSelectRowAtIndexPath 中使用的代码是:
if indexPath.row == 1{
let destinationVc = self.storyboard?.instantiateViewController(withIdentifier: "Home")
let newFrontVc = UINavigationController.init(rootViewController:destinationVc!)
revealViewController.pushFrontViewController(newFrontVc, animated: true)
}
【问题讨论】:
标签: ios swift swrevealviewcontroller tabbarcontroller