Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
653 views
in Technique[技术] by (71.8m points)

ios - TabBarController with SWRevealViewController

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)

UitabBarController

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...