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 6951803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:16:03+00:00 2026-05-27T14:16:03+00:00

In my iPhone app I have implemented a custom tab bar which functions perfectly,

  • 0

In my iPhone app I have implemented a custom tab bar which functions perfectly, no problems there. However, there is one problem that I’m encountering: Basically my custom tab bar doesn’t actually control the tab bar views, it just signals the underlying standard UITabBarController that it should setSelectedIndex:1, etc. It’s basically only a visual custom tab bar without any logic behind it. Therefore, I need to hide the underlying standard UITabBar that does all of the dirty work behind the scenes.

The most common thing I’ve come across with my friend Google is that people have used this code to hide the tab bar:

for(UIView *view in tabbarcontroller.view.subviews)
{
    if([view isKindOfClass:[AppTabBarController_iPhone class]])
    {
        [view setFrame:CGRectMake(view.frame.origin.x, 480, view.frame.size.width, view.frame.size.height)];
    }

    else 
    {
        [view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, 480)];
    }
}

Indeed, this does push the tab bar just out of sight, but it brings along another problem in any scroll views: The background image of every scrollview is getting repeated for 44 pixels (i.e. the height of the tab bar that has been shifted down) and so that makes for a truly ugly experience.

Is there some sort of setFrame hack I can do to make this work out, or do you have a completely better way of hiding the tab bar that would eradicate this problem?

  • 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-27T14:16:03+00:00Added an answer on May 27, 2026 at 2:16 pm

    Just a thought, instead of hiding the original UITabBar why don’t you just cover it with your custom UITabBar? Unless they have different heights you should be just fine.

    To cover it you would have to add your custom tabbar as a subview to the main window.

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

Sidebar

Related Questions

I have an iPhone app that hides the status bar. However, my main view
I am attempting to implement a custom tab bar in my iPhone app, and
I have an iphone app where I call these three functions in appDidFinishLaunching: glMatrixMode(GL_PROJECTION);
I have moved my iPhone app from one machine to another. In the process
I have a simple iPhone app which accesses some remote data on start-up then
I have implemented Facebook connect on my iPhone App to login users to my
I have implemented an in-app purchase into my iPhone application. It is non-consumable, and
I have implemented the method willRotateToInterfaceOrientation , and my iPhone app nicely animates the
I am working on iPhone app. I have added Navigation bar Background image With
I have implemented a custom UITableViewCell which includes a UITextView that auto-resizes as the

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.