septerr
septerr

Reputation: 6593

Tab Bar Controller - Show a view controller that is not one of the tabs

I wonder if this is possible. The design for this app I am working on is as below:

Two sliding views sit one on top of the other. The bottom view is a 'Settings' view. The top view is a tab bar view. We are using ECSlidingViewController for the sliding.

  1. When the app is opened for the first time, the tab bar view shows with first tab selected. enter image description here
  2. When they tap on the hamburger menu or slide right, the bottom, settings view slides into view. Mockup 2
  3. When they tap on an item in the settings view, like the About item, the corresponding view should be displayed inside the top tab bar view with none of the tabs shown as selected. Mockup 3

I think I am going to have to convince my team to not display the settings items inside of the tab bar, it seems just too twisted. But just wanted to know if anyone else has done anything like this and if it is possible to do it without introducing too much complication in the code.

Upvotes: 2

Views: 1180

Answers (1)

Matthew
Matthew

Reputation: 2135

I've done something with the same design with a menu that slides from the left and over the tab bars. I ended up putting a View Controller on top of everything else

Something like

[self presentViewController:AboutViewController Animated:YES];

Just make sure that you either put that view controller in a UINavigationController or something with a dismissViewController for users to return to your main page.

Upvotes: 1

Related Questions