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

  • Home
  • SEARCH
  • 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 7051627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:17:10+00:00 2026-05-28T03:17:10+00:00

I have put one global tabBarController in iphone app that I have been working

  • 0

I have put one global tabBarController in iphone app that I have been working on.
But in one of my screen I needed to put the local tabBar which is different from the global tabBarController.

I have done it in two ways:
1) Hiding the global tabBar by self.tabBarController.tabBar.hidden = yes; and putting local tabBar in place of it in the view. But the frame of tabBar is showing blank white.
2) Tried by adding the local tabBar as subview of global tabBar which worked but after screen is unloaded its not removing the local tabBar though applying [localTabBar removeFromSuperView];

Thanks in advance..

Global tabBarController:
tabBarController          = [[UITabBarController alloc] init];
tabBarController.viewControllers = [NSArray    arrayWithObjects:ActivityTabnav,nav2,privateChatnav,ExploreTabnav,nav3,tempTabnav, nil];

localtabBar is a tabBar on view xib of viewController.
in vIewDidLoad >

 UIWindow* window = [[UIApplication sharedApplication] keyWindow];
 [window addSubview:self.tabBar];

in vIewDidUnLoad >

[self.tabBar removeFromSuperview];

Previously I tried to add self.tabBar to self.tabBarController.tabBar as a subView which persisted the local self.tabBar in other screens.

Thank you…

  • 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-28T03:17:11+00:00Added an answer on May 28, 2026 at 3:17 am

    The cleanest way I’ve found to do this is to set the hidesBottomBarWhenPushed property of your view controller, then place it inside a UINavigationController (hiding the navigiationBar if you don’t need it). This will hide the UITabBarController's UITabBar without leaving a white space.

    You’d then put the local UITabBar directly into the UIViewController's view;

    Another possibility would be to hide the UITabBarController's UITabBar, then add the local UITabBar to as a subview of UITabBarController's view. Of course you’d have to remove from superview when needed.

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

Sidebar

Related Questions

Ok, so i have been trying to put everyone one of my classes in
I have to implement a one linked list but it should put object in
I have two functions that i'm hoping i can put into one and can
I have 3 different jquery uses & put it into one code as follows:
So I have a java hashmap like below: hMap.put(1, One); hMap.put(2, Two); hMap.put(3, Two);
I have been working fine with MVVM Light on a silverlight 4 Windows Phone
I have two buttons and two divs(I put one above another). I made info
I have a python module that makes use of a huge dictionary global variable,
I'm trying to put in an exception in my web.config so that one page
My SQL Server 2008 has one central database that has some global functions, e.g.

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.