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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:25:09+00:00 2026-05-18T02:25:09+00:00

I am trying to nest a UITabBar inside another one, like so: UITabBarController *tabController

  • 0

I am trying to nest a UITabBar inside another one, like so:

UITabBarController *tabController = [[UITabBarController alloc] init];
tabController.delegate = self;

UITabBarController *friendsTabController = [[UITabBarController alloc] init];

FindFriendsViewController *findFriendsController = [[FindFriendsViewController alloc] initWithNibName:@"FindFriendsViewController" bundle:nil];
findFriendsController.rootViewController = self;
UINavigationController *findFriendsNavController = [[UINavigationController alloc] initWithRootViewController:findFriendsController];
findFriendsNavController.tabBarItem.title = NSLocalizedString(@"Add", nil);

friendsTabController.viewControllers = [NSArray arrayWithObjects:friendStreamController, friendListController, findFriendsNavController, nil];

tabController.viewControllers = [NSArray arrayWithObjects:nearbyNavController, friendsTabController, meController, checkInController, logController, nil];

(obviously, some of the code, such as the other tabs is ommitted for brevity)

When I do this, and click on the “Friends” tab of the outer tab bar, the inner tab bar appears directly above the outer one. I don’t want this. I would like the inner tab bar to take the place (at the bottom of the window) of the outer one when it is selected.

I’ve tried doing this by hiding the outer tab bar, by setting it to hidden in the UITabBarController delegate method, and I’ve tried setting the frame of the inner tab bar to manually position it at the bottom of the screen like so:

friendsTabController.tabBar.frame = CGRectMake(0, 430, 320, 50);

When I hide the outer tab bar the inner one still appears the same distance from the bottom edge of the screen, and the outer one is replaced by a blank rectangle.

When I try setting the frame of the inner tab bar, the only part of it that is visible is any part that would be outside the frame of the outer tab bar.

I’ve tried googling this to no avail. Surely this kind of navigation is not so rare? Before attempting this I had assumed it would be supported in the SDK.

Any ideas?

TIA,

Tom

  • 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-18T02:25:10+00:00Added an answer on May 18, 2026 at 2:25 am

    You could try having a single tab-bar controller in your app. When a user clicks on a tab that leads to a new set of tabs, replace all of the tabs in the single-tab-bar controller. I’m not sure you navigate “back” to the top level, but I presume you have something in mind.

    I dont think this is great UI, but you can probably make it work this way.

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

Sidebar

Related Questions

I'm trying to create a Hash of Hash -es. The value of the 2nd
I've just started developing a hobby site for myself, and trying to use the
trying to figure out how to add zeroes in front of a random generated
Trying to create an app that does some socket communication (Writing only). I can
Trying to assign a key to each field in android to reference in Java.
Trying to get this to function, randomly chooses 1 of the 3 color choices.
Trying to find some information on the GC. In my log i see these
Trying to track down a bug in an application, but need to confirm whether
I have a table that has about 400,000+ rows. I am writing some pattern
I have a created a single LINQ query that creates a main group and

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.