Replace overlay with UITabBarController


#1

I’m using the SEssentialsSlidingOverlay.  When I choose an item from my underlay view (it hosts a table view) I need to switch out my overlay view.  Is it possible to replace that overlay with a UITabBarController?  I was trying this:

UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Team~iphone" bundle:nil];
UITabBarController *tab = [sb instantiateInitialViewController];

[self.slidingView.overlay addSubview:tab.view];

But that shows the view of the first tab only, not the actual tab bar control with the view in it.


#2

Although not answering exactly the same problem, the following blog post is a tutorial which explains how to use a UINavigationController with the sliding overlay. The concepts should be very similar, and might help you solve your problem:

shinobicontrols.com/blog/posts/2013/02/04/navigating-the-slidingpanel/

-sam


#3

Thanks, Sam.  I found that my code above worked if I held a strong reference to the tab bar controller itself. 


#4

Thanks, Sam.  I found that my code above worked if I held a strong reference to the tab bar controller itself.