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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:44:34+00:00 2026-06-17T14:44:34+00:00

I have a project that is a tab-bar controller. Each tab usually has a

  • 0

I have a project that is a tab-bar controller. Each tab usually has a UINavigationController. The problem I have is this: I need a new tab with alot of navigation (roughly 30 navigation items grouped into 4-8 groups. Problem: My navigation bar is already full (can’t use the navigation controller (or bar). What I need is navigation below the navigation bar (which has a global search bar and other global icons filling it). How can I implement this best?

What I have now: I have created a UIScrollView just under the navigation bar to serve as my “hand-rolled” navigation bar. It’s a scrollView because I don’t know (going forward) how many “groupings” of navigation items I will have (currently only 4). Each of these groups is represented by a UIButton, some of which should immediately present a view, and others which present a popover with further navigation items, which when selected will present a view.

Problem: I want a “content view” under my navigation view mentioned above, where I can present content based on the user’s navigation choices. I have to support iOS 5.0, so I can’t use the storyboard container view (unfortunately). I will have 3 types (maybe more later) of content views I will present, that I would like to create as individual view controllers and then push the appropriate one as it’s selected in my navigation mentioned. Is there a 3rd party navigation controller I can use? Do I have to “roll my own”? Any advice would be greatly appreciated.

Here is a “slapped-together” picture of what I need to achieve:
enter image description here

  • 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-06-17T14:44:36+00:00Added an answer on June 17, 2026 at 2:44 pm

    I would make what you’re calling the content view a subview of your main view, and use it as the view to which you will add a childViewController’s view. If you haven’t already read up on custom container controllers, you should do so, but the basic way of using them is like this.

    The controller’s whose view you show in your question would be the custom container controller. You could load up an initial controller in the viewDidLoad method, then switch the controller in your subview (I’m calling it self.containerView) in response to the user choosing something from your scroll bar:

    - (void)viewDidAppear:(BOOL)animated {
        [super viewDidAppear:animated];
        UIViewController *initial = [self.storyboard instantiateViewControllerWithIdentifier:@"InitialVC"];
        [self addChildViewController:initial];
        [initial.view.frame = self.containerView.bounds];
        [self.containerView addSubview:initial.view];
        self.currentController = initial;
    }
    
    -(void)switchToNewViewController:(UIViewController *) cont {
        [self addChildViewController:cont];
        cont.view.frame = self.containerView.bounds;
        [self moveToNewController:cont ];
    }
    
    -(void)moveToNewController:(UIViewController *) newController {
        [self.currentController willMoveToParentViewController:nil];
        [self transitionFromViewController:self.currentController toViewController:newController duration:.6 options:UIViewAnimationOptionTransitionFlipFromLeft animations:^{}
             completion:^(BOOL finished) {
                 [self.currentController removeFromParentViewController];
                 [newController didMoveToParentViewController:self];
                 self.currentController = newController;
             }];
    }
    

    This should give you the basic idea. I took this from one of my test projects, so it will probably need a little tweaking.

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

Sidebar

Related Questions

I'am currently working on an project where we have a tab bar controller with
I have a UIViewController that I've added UITableViewDelegate to. This controller has a corresponding
I have a iPad app using XCode4 with Storyboards, that has a Tab Bar
Almost every project that I work will have some sort of tab delimited file
To set the scene I have: A Tab View Controller with 2 tabs Each
I have a basic project created in xcode as a Tab Bar Application, What
I have an iPhone app (in XCode 4) that uses the standard Tab Bar
We have a tab bar + navigation control project. We have created a tab
I have an XCode project I am working on that has multiple views controlled
I have a TabBar that I've created through IB, I chose create new project

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.