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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:43:12+00:00 2026-05-26T00:43:12+00:00

I have been looking for weeks now and had no luck trying to find

  • 0

I have been looking for weeks now and had no luck trying to find a tutorial for Xcode 4 showing how to add a Table View to a Tab Bar app. I was wondering if you could point me in the right direction?

Thanks

  • 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-26T00:43:12+00:00Added an answer on May 26, 2026 at 12:43 am

    Any TabBarController tutorial should do because you add UIViewControllers to the tab bar. For the table view, simply create a UITableViewController. You should be able to add that to the tab bar controller … or any other view controller. For example, if you find some other tutorial doing a TabBar with a navigationController … simply replace the navigationController part of the tutorial with a UITableViewController. There’s also plenty of docs and tutorials on UItableViewControllers.

    For example, if you look at this code in an app delegate didfinishLaunchingWithOptions. Pior to this, a MyTableViewController was created (UITableViewController) and some other UIViewController.

    // View Controllers for tabController - could be UItableViewControllers or any
    // other UIViewController.  You will add this to the tabController
    NSMutableArray *viewControllers = [[NSMutableArray alloc] init];
    
    MyTableViewController *myTable = [[MyTableViewController alloc] initWithNibName:@"MyTableViewController" bundle:nil];
    [viewControllers addObject:myTable];
    
    SomeOtherUIViewController *other = [[SomeOtherUIViewController alloc] initWithNibName:@"SomeOtherUIViewController" bundle:nil];
    [viewControllers addObject:other];    
    
    // add the UIViewControllers to the tabController
    [tabController setViewControllers:viewControllers];
    
    // add tabbar and show
    [[self window] addSubview:[tabController view]];
    [self.window makeKeyAndVisible];
    return YES;
    

    And then in each of those view controllers that you added to the tabbar, make sure you add the tabbar item to them in their init

    - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
    {
        self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
        if (self) 
        {
            UITabBarItem *barItem = [[UITabBarItem alloc] 
                                 initWithTitle:@"Progress" 
                                 image:[UIImage imageNamed:@"report.png"] tag:2];
    
            [self setTabBarItem:barItem];
            [barItem release];
        }
        return self;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

OK, I have been looking for weeks now. I have looked through Eclipse and
I have been looking for weeks for an OBJ-C based tutorial on how to
I have been looking around for some time now, but can't seem to find
I have been looking online to find documentation for the function in QTP and
I have problem and I've been looking for a week now on how to
Hi StackOverflow friends. Running Drupal 6.22 php 5.3 I have been looking around now
I've been searching online for weeks now for a decent tutorial to help me
I have been looking for a 5-Star rating control for a while now and
I have been looking for weeks for a way to do this: Screenshot http://img229.imageshack.us/img229/2430/screenshoteor.png
For about 2 weeks now, I have been unable to run any UnitTests (built

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.