Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Can't get slide tab bar to contain a view for showing/hiding
posted

My root view controller consists of a Tab Bar at the bottom of the screen, and a UIView above it for the remainder of the screen.

I'd like to put the Tab Bar inside a slide tab view in order to give more screen real estate to the UIView above the Tab Bar.

On viewDidLoad, I'm removing my tab bar from the bottom of the screen (because it's in my xib) and instead placing it inside a slide tab bar, but as you can see from the attached photo from "Reveal" the slide tab bar is hidden behind my tab bar.

In viewDidLoad, I'm doing the following...

-(void)viewDidLoad

{

[super viewDidLoad];

            slideTabView.frame = [self slideTabBarFrameForCurrentOrientation];

            // Place tab bar inside slide tab view.

            [tabBar removeFromSuperview];

            [self.view addSubview:slideTabView];

            

            slideTabItem = [IGSlideTabItem tabWithLocation:IGSlideTabLocationBottom title:@"Tabs" tabView:nil contentView:tabBar];

            [slideTabView addTab:slideTabItem];

            // [slideTabView addSubview:tabBar];

            

            [self.view bringSubviewToFront:slideTabView];

            

            theRootmostView = self.view;

tabBar.delegate = self;

tabBar.selectionIndicatorImage = [UIImage imageNamed:@"TabSelected"];

}

tab bar misplacement

Parents
No Data
Reply Children