Reputation: 2235
As an iOS noob, I recently starting feeling pretty good about myself when my iOS productivity started looking good. Until... I tried to figure out how to combine a UITabBarController with MMDrawerController in a storyboard :-(
The app shows three tabs permanently along the bottom, and I want to add a right-side sliding menu to that, and ideally I want to do this in storyboard. I settled on MMDrawerController for the sliding menu.
Question 1: Is it even possible to point the first tab of the UITabBarController to a MMDrawerController? Or should it be the other way around: set up the MMDrawerController at the root, and have the center view be the tabbed screen?
For example, UITabBarController has to be the root view of the application. So, I tried setting up the MMDrawerController for the view of the first tab (as that's where I need it only anyway), but I was just not able to get it to work at all. All examples of how to integrate MMDrawerController into your project that I could find online, all set up the MMDrawerController at the root. To set up a tabbed screen as a sub view, it looks like you can't use UITabBarController, but need to mimic that yourself with UITabBar and regular UIViewControllers?
Question 2: Has anyone seen any examples or tutorials that combine a tabbed interface with the side sliding menu?
The UI used in the Facebook iPhone app is essentially what I'm trying to employ here: you can drag the side sliding menu and as you do that it pushes out the main view along with its fixed tabs at the bottom.
I'm totally overwhelmed and confused. I have no idea how to attack this. It also doesn't help that I'm totally new at Storyboards :-(
Any help, or just pointers are super appreciated...
Thanks, Erik
Upvotes: 4
Views: 1528
Reputation: 85
here is a good tutorial to implement a sliding menu like facebook.
Upvotes: -2