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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:41:13+00:00 2026-05-27T01:41:13+00:00

I have created a tabbarcontroller (with its default two view controllers) using interface builder

  • 0

I have created a tabbarcontroller (with its default two view controllers) using interface builder in XCode 4.2.

But, when I run the application, the tab bar seems to be locked and I can’t choose the other tab. Why is that?

PS: I haven’t changed any property of the tab bar or tabbarcontroller in XCode.

  • 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-27T01:41:14+00:00Added an answer on May 27, 2026 at 1:41 am

    Apologies – assumed because you were using XCode 4.2 that you were using storyboards. Perhaps you could try instantiating a tabbar controller fully in code instead of using IB at all. This is how I usually do it….

    // Create the main tabbar controller
    tabbarController = [[UITabBarController alloc] init];
    
    // Create the first view controller
    MyFirstViewController *v1 = [[MyFirstViewController alloc] initWithNibName:@"MyfirstViewController" bundle:nil];
    [v1 setTitle:@"Tab1"];
    
    // Create second view controller
    MySecondViewController *v2 = [[MySecondViewController alloc] initWithNibName:@"MySecondViewController" bundle:nil];
    [v2 setTitle:@"Tab2"];
    
    // Make an array of controllers for the tabbar
    NSArray *tabbarControllerArray = [NSArray arrayWithObjects:v1, v2, nil];
    
    // Set the view controllers used by the tabbar controller
    [tabbarController setViewControllers:tabbarControllerArray];
    
    // Release views (retained elsewhere)
    [v1 release];
    [v2 release];
    
    // Add the controller to the subview
    [window addSubview:[tabbarController view]];
    
    // Make key and visible
    [self.window makeKeyAndVisible];
    

    Give this way a shot and see how you get on.

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

Sidebar

Related Questions

I have Xcode 4 and I created an application using the Tab Bar template
i have a tabBarController application and using .xib files for the interface not the
I created an application with a TabBarController, 4 TabBarItems and every TabBarItem have is
Have created a small two tab app, then subclassed another view controller to create
I have a basic project created in xcode as a Tab Bar Application, What
So I have a UITabView Controller that was created in interface builder. The title
So I have programatically created a tabbarcontroller that uses navigation controllers(based on Jeff Fithian's
I have created a custom dialog for Visual Studio Setup Project using the steps
I have created a C# class file by using a XSD-file as an input.
I have a tab bar application and when I display a modal view controller,

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.