vealViewController的TabBarControl

vealViewController的TabBarControl

本文介绍了带有SWRevealViewController的TabBarController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一个滑动侧面菜单 SWRevealViewController 完美配合。

I have a "Sliding Side Menu" in my application working perfectly with SWRevealViewController.


  • 带有 tableView 的侧边栏VC通过菜单按钮连接到3个视图控制器(在导航栏中)

  • 1 Sidebar VC with a tableView connected to 3 View Controllers with the menu button (at Navigation Bar)

我需要从其中一个按钮内打开一个 UITabBarController ,它必须具有相同的功能滑动菜单。

I need to open a UITabBarController from a button inside one of them , and it must have the same sliding menu.

我创建了另一个 SWRevealViewController ,我以相同的方式链接到我的 UITabBarController 。我将第一个tabVC嵌入导航视图控制器(见图)

I created another SWRevealViewController and I linked the same way to my UITabBarController. I embed my first "tabVC" in a "Navigation View Controller" (see photo)

当我这样做时,它可以正常工作,但如果我点击SideBar中的一个单元格,它就会运行到正确的视图(一个VC在我的第一个侧边栏中工作)但是没有导航栏和底栏

When I did it, it works, but if I clicked in one of the cells at the "SideBar", it goes to the correct view (one VC working in my first Sidebar) But without Navigation Bar and with the bottom bar

我怎样才能让导航栏始终位于顶部我的 TabBarController只有TabBar

How can I do it to have always Navigation Bar at top and only "TabBar" in my TabBarController?

已解决:

订单是 SWRevealViewController 到Navigation Controller,然后是 UITabBarController
此外, UITabBarController 需要菜单按钮,而不是 TabViews

The order is SWRevealViewController to Navigation Controller, and then, UITabBarController.Also, the menu button is needed at UITabBarController instead of TabViews.

推荐答案

重新排序订单首先创建导航控制器。然后调用 UITabbarcontroller

Rearrange the order create the navigation controller first . then call the UITabbarcontroller

这篇关于带有SWRevealViewController的TabBarController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 22:14