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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:02:27+00:00 2026-05-23T07:02:27+00:00

My app is based on a tab bar architecture. In order to have an

  • 0

My app is based on a tab bar architecture. In order to have an easy internationalisation mechanic, I do not write any string in XIB files. viewdidload permits to change programmaticaly the strings in the views.

When my app launches, I can see the 4 tabs. But in fact only the first one loads its view controller. The others wait for user click to be loaded.
Tabs title can be changed using [self setTitle:@”Mouhahaha”]; in viewDidLoad of loaded view controller.

If I want to keep my internationalisation mechanic available, I do not set in my XIB the name of tabbar items. But, as at start all tab’ view controllers are not loaded, I have blank titles for some tabs. The right title is set only when the user click on the tab.

I am looking for a way to set this title programaticaly for each tabbaritem. Do you have hints ?

Thanks a lot.

kheraud

  • 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-23T07:02:27+00:00Added an answer on May 23, 2026 at 7:02 am

    All you need to do is make an instance of UITabBarController, then alloc any views you want in it, then set the UITabBarController views. Make sure that your TabBarController is the one that is visible. Also make sure that any viewControllers you want in your tab bar are being imported with #import.

    UITabBarController *c = [self tabBarController];
    SecondViewController *s = [[SecondViewController alloc] init];
    [s setTitle:@"Whatever"];
    c.viewControllers = [NSArray arrayWithObjects:self, s, nil];
    [s release];
    

    Put this in the viewDidLoad method of the first controller allocated.

    Alternatively you could just change the way your ApplicationDelegate sets up the TabBarController, but i won’t go into that.

    Hope this helps

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

Sidebar

Related Questions

I am having an issue: I have a tab-bar based app. In MainWindow.xib for
I have a tab bar + navigation based app and I'd like to launch
I have an app based on a tab bar and data retrieved from the
I have an app that is based on a tab bar view with a
I have a table based app and would like to add a tab bar
I have a app based off the default xcode Tab Bar Application template. It
I am creating app based on UTabbarController. I have creates that tab bar programmatically.
I am working on a simple app tab-bar based application that has two views.
I'm developing an iPhone app that features a tab-bar based navigation with five tabs.
I have a tab-based iPhone app where I want to increase the perceived start-up

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.