Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 从侧面菜单中选择菜单项时,选项卡栏是否消失?_Ios_Swift_Uitabbarcontroller_Swrevealviewcontroller - Fatal编程技术网

Ios 从侧面菜单中选择菜单项时,选项卡栏是否消失?

Ios 从侧面菜单中选择菜单项时,选项卡栏是否消失?,ios,swift,uitabbarcontroller,swrevealviewcontroller,Ios,Swift,Uitabbarcontroller,Swrevealviewcontroller,我有汉堡按钮(菜单按钮)在几乎所有的vc和我的主屏幕是tabBarController。目前,我在点击按钮时会看到侧边菜单。在选择菜单时,它会显示所需的vc,但底部的选项卡栏不在那里,而在我选择菜单项之前就在那里。我想在整个页面的底部选项卡栏,也在侧菜单的页面中。我正在使用SWRevealViewController作为汉堡菜单 我怎样才能做到这一点?请帮帮我 我在didSelectRowAtIndexPath中使用的代码是: if indexPath.row == 1 { let de

我有汉堡按钮(菜单按钮)在几乎所有的vc和我的主屏幕是tabBarController。目前,我在点击按钮时会看到侧边菜单。在选择菜单时,它会显示所需的vc,但底部的选项卡栏不在那里,而在我选择菜单项之前就在那里。我想在整个页面的底部选项卡栏,也在侧菜单的页面中。我正在使用
SWRevealViewController
作为汉堡菜单

我怎样才能做到这一点?请帮帮我

我在
didSelectRowAtIndexPath
中使用的代码是:

if indexPath.row == 1 {
    let destinationVc = self.storyboard?.instantiateViewController(withIdentifier: "Home")
    let newFrontVc = UINavigationController.init(rootViewController:destinationVc!)
    revealViewController.pushFrontViewController(newFrontVc, animated: true)
}

您必须在navBarVc和frontVc之间添加tabBarController

let navBarVc = UINavigationController()
let tabBarVc = navBarVc.childViewControllers[0] as! tabBarController
    tabBarVc.selectedViewController = yourVc

怎么样。

你能检查一下这个链接吗@RatneshShukla已经通过了那个代码…他正在使用containerViewController,但是当我初始化容器对象时,它给我错误“使用未声明的类型”