TabBarController with SWRevealViewController

核能气质少年 提交于 2019-11-28 06:24:45

问题


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

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

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

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)

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

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

SOLVED:

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


回答1:


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



来源:https://stackoverflow.com/questions/23614851/tabbarcontroller-with-swrevealviewcontroller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!