Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7173819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:54:14+00:00 2026-05-28T15:54:14+00:00

This question has been asked a lot and there are quite a few answers,

  • 0

This question has been asked a lot and there are quite a few answers, but none of the answers I can find answer the following:

I have a UITabBarController

I want to hide the tab bar, so I call:

self.tabBarController.tabBar.hidden = YES

This removes the bar, but there is now an empty black box where the tab bar used to reside. I’ve tried resizing the frame of the ViewController that is currently being presented and it is always behind the black box left from the tab bar.

I also loop through all the subviews and hide them, no luck there.

Finally, I tried resizing the frame of the tabbar, and that doesn’t do the trick either

Has anyone had any luck with this?

Also:
hidesBottomBarWhenPushed doesn’t work because the app isn’t based on a UINavigationViewController, it is based on a UITabBarController.

This is an iPad app

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:54:15+00:00Added an answer on May 28, 2026 at 3:54 pm

    I had the same problem. Here is how I have gone about hiding the tab bar:

    [self.tabBar removeFromSuperview];
        UIView *contentView;
        if ([[self.view.subviews objectAtIndex:0] isKindOfClass:[UITabBar class]]) {
            contentView = [self.view.subviews objectAtIndex:1];
        } else {
            contentView = [self.view.subviews objectAtIndex:0];
        }
    contentView.frame = self.view.bounds;
    

    This is called from the tabBarController (I have it subclassed), but it does remove the tabBar and resizes the view to get rid of that black bar you are seeing now. If you don’t have a subclassed tabBarController, I’m sure you could just change all instances of self to self.tabBarController and it should work the same.

    I hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this type of question has been asked a lot but none of
I know this question has been asked several times, but I can't quite seem
Yes, I know this question has been asked a lot of times, but I
This question has been asked before but the answers aren't always clear or are
This question has been asked before perhaps multiple times, but I can't get the
Perhaps this question has been asked elsewhere, but I'm unable to find it. With
I guess this question has been asked a lot around. I know Rails can
I'm sure this question has been asked many times, but I can't figure this
I'm sorry if this question has been asked before, but I can't seem to
I know this type of question has been asked a lot, but I really

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.