我在我的项目中使用SWRevealViewController。我的应用程序有TabBarController。我这样做,我打开菜单。当我在菜单中选择它打开没有TabBarController底部。我使用Storyboard。我的开始View是带有类SWRevealViewController的ViewController。我使用标识符sw_rear和类SWRevealViewControllerSegueSetController连接到我的菜单。在菜单之前,我有导航控制器。我还使用标识符sw_front和类SWRevealViewControllerSegueSequeController将SWRevealViewController连接到我的TabBar。我究竟做错了什么?SWRevealViewController与TabBarController
在我的菜单来打开一看我有这样的代码:
BookTableViewController *m = [self.storyboard instantiateViewControllerWithIdentifier:@"Book"];
[self.revealViewController pushFrontViewController:[[UINavigationController alloc] initWithRootViewController:m] animated:YES];
[self.revealViewController setFrontViewPosition:FrontViewPositionLeft animated:YES];
我的问题是,当我在我的菜单中选择并打开它。它打开时没有TabBar底部。 – Ales
你菜单viewcontroller需要有一个标签栏?如果是这样,只需将标签栏分配给右侧的ViewController。你需要菜单中的每个选项加载标签栏吗? – JingJingTao
菜单不需要标签栏。菜单中的其他选项(viewcontroller或tableviewcontroller)必须加载标签栏底部。 – Ales