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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:18:13+00:00 2026-06-14T09:18:13+00:00

I am using XCode 4.3 and I am creating a tab bar application following

  • 0

I am using XCode 4.3 and I am creating a tab bar application following an example in my book (likely used for XCode version < 4.3).

By default the newly created tab-bar application includes 2 tabs. you can see my screenshot

enter image description here
And now I would like to add another tab (the TabExampleThirdViewControler as you also see in the image). But I don’t know how to make it the third tab. My old book says that I need to link it to the MainWindow but as you see in the image, there is no MainWindow file at all.

This sort of update from new version of XCode pretty confuses a beginner like me. Thank you for any guidance you could offer.

  • 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-14T09:18:15+00:00Added an answer on June 14, 2026 at 9:18 am

    I am not sure what approach you are follwoing to create tabs. But look at mine. I always create tabs like this. This is very easy to implement :

    Appdelegate.h
    
    UITabBarController *tabBarController;
    // set properties
    
    Appdelegate.m
    
    // Synthesize
    
    tabBarController = [[UITabBarController alloc] init];
    tabBarController.delegate=self;
    
    // Adding Search,Nearby,Map,AboutUs,Favorites Tabs to tabBarController  
    Search * search = [[Search alloc] init];  
    UINavigationController *searchNav = [[UINavigationController alloc]        initWithRootViewController:search];  
    
    Nearby* nearby = [[Nearby alloc] init];  
    UINavigationController *nearbyNav = [[UINavigationController alloc] initWithRootViewController:nearby];  
    
    Map* map = [[Map alloc] init];  
    UINavigationController *mapNav = [[UINavigationController alloc] initWithRootViewController:map];  
    
    AboutUs* aboutUs = [[AboutUs alloc] init];  
    UINavigationController *aboutUsNav = [[UINavigationController alloc] initWithRootViewController:aboutUs];  
    
    Favorites* favorites = [[Favorites alloc] init];  
    UINavigationController *favoritesNav = [[UINavigationController alloc] initWithRootViewController:favorites];  
    
    NSArray* controllers = [NSArray arrayWithObjects:searchNav,nearbyNav,mapNav,aboutUsNav,favoritesNav, nil];  
    tabBarController.viewControllers = controllers; 
    
    [window addSubview:tabBarController.view];  
    

    Then in each of the view controllers mentioned above you need to implement

    - (id)init {}
    

    in which you can set Tab name and image.

    I always follow this approach and it never fails. The tabs are always visible.

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

Sidebar

Related Questions

I am using XCode 4.3 and I am creating a tab bar application following
Using the Tab Bar template in Xcode 4, each ViewController is created automatically, so
I am creating and iPad application using XCode version 4.3.2. I am having trouble
I'm creating my first iPhone application (using XCode 4), and I initially created the
I'm using XCode 4 and storyboarding an application I'm creating, however I cannot visually
I am creating a new file using Xcode's navigation based application and I see
I am creating an application for Mac using Xcode 4.2, and I wanted to
I'm tasked with creating an application using XCode for OSX. This application needs to
I am little bit confused about creating universal application for iOS devices using Xcode
I am creating an iPad app using XCode 4 and Storyboards. I have a

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.