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

The Archive Base Latest Questions

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

In my application I’m using a Navigation Controller to push one view that loads

  • 0

In my application I’m using a Navigation Controller to push one view that loads a Tab Bar Controller and a custom Navigation Bar as well. The problem is that the Tab Bar disappears below the bottom of the screen, and I don’t know what’s causing the problem.

If I load a simple Tab Bar in the next view, it positions itself correctly… but what I need is a Tab Bar Controller, and in that case the Tab Bar disappears below the bottom. I have tried changing the view and size properties of the Tab Bar, but that did not solve the problem.

I also realised that the images and text of the tabs don’t show (I have set up the “favourites” and “contacts” images and text, and they are big enough and should be visible on the top side of the tab, but they are not).

Both tabs work perfectly, by the way.

There is an image here.

I load the Tab Bar with the following code:

- (void)viewDidLoad {
    [super viewDidLoad];
    myTabBarController = [[UITabBarController alloc] init];
    SettingsViewController* tab1 = [[SettingsViewController alloc] init];   
    AboutViewController* tab2 = [[AboutViewController alloc] init];
    NSArray* controllers = [NSArray arrayWithObjects:tab1, tab2, nil];
    myTabBarController.viewControllers = controllers;
    [self.view insertSubview:myTabBarController.view belowSubview:myNavigationBar];
}

It doesn’t matter if I remove the Navigation Bar or not. I have tested using this instead:

[self.view addSubview:myTabBarController.view];

… forgetting about the Navigation Bar, but the Tab Bar still goes under the bottom.

I don’t know if the problem is in one of my NIB files or in how I load the view (although I do this as I read in the Apple’s SDK documentation). Any ideas?

Another question would be… do you know how could I change the title of my Navigation Bar when I select the second tab? I imagine I would have to do it in viewDidLoad in AboutViewController.m, would that be correct?

Thanks for you time!

  • 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-14T21:28:01+00:00Added an answer on May 14, 2026 at 9:28 pm

    Please ask one question per submission – it will allow us to better help you.

    For your first problem: you need to add the tab bar controller to the navigation controller, not to that view. The heirarchy should be:

    • Navigation Controller
      • Tab Bar Controller
        • Your View(s)

    (Though Apple’s documentation suggests that the tab bar should be application-wide and should thus be the root view, not the navigation controller).

    For your second question, the text on the “Back” button is determined by the title property of the previous view controller. To change it, do the following (source):

    - ( void )viewDidLoad
    {
        [ super viewDidLoad ];
    
        UIBarButtonItem *backButton =
        [[ UIBarButtonItem alloc ] initWithTitle:@"Back"
                                           style:UIBarButtonItemStyleBordered
                                          target:nil
                                          action:nil ];
        self.navigationItem.backBarButtonItem = backButton;
        [ backButton release ];
    }
    

    EDIT: It appears you want to set the title of the second view controller in your navigation stack. That’s easy:

    - ( void )viewDidLoad
    {
        [ super viewDidLoad ];
    
        self.title = @"Title";
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 430k
  • Answers 430k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer XML does not differentiate self closing tags from empty tags,… May 15, 2026 at 1:58 pm
  • Editorial Team
    Editorial Team added an answer The compiler generated enumerable does not have the [Serializable] attribute… May 15, 2026 at 1:58 pm
  • Editorial Team
    Editorial Team added an answer My wrong, input bindings does not solve the problem. You… May 15, 2026 at 1:58 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.