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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:21:44+00:00 2026-05-15T12:21:44+00:00

I have a TabBar App. I have created a UITableView class called Schedule that

  • 0

I have a TabBar App. I have created a UITableView class called “Schedule” that has a matching Nib. I want to add Schedule to the TabBar, but I do not want to do it through Interface Builder. When I add it Programmatically, I see the TableView, but it is blank. I have added some NSLogs to Schedule.m and the class does not appear to be called. The Nib and the Schedule Class are connected properly. I figure I am doing something wrong in the code where I am adding the UITableView to the TabBar:

// Create View Controllers
UITableViewController *scheduleViewController = [[UITableViewController alloc] initWithNibName:@"Schedule" bundle:nil]; 

// Create UITabBarItems
UITabBarItem *scheduleTabBarItem = [[UITabBarItem alloc] initWithTitle:@"Schedule" image:[UIImage imageNamed:@"calendar.png"] tag:0];

scheduleViewController.tabBarItem = scheduleTabBarItem; 

// Create Array of View Controllers
NSArray *items = [NSArray arrayWithObjects:scheduleNavigationController, nil];

// Add View Controllers to TabBar
[tabBarController setViewControllers:items animated:NO];    

// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
  • 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-15T12:21:45+00:00Added an answer on May 15, 2026 at 12:21 pm

    You are instantiating a UITableViewController, which does not contain any code to fill the table view with data. So where do you suppose the data for the table should come from? If you have written a custom UITableViewController subclass for it, you have to instantiate this subclass here (and set it as the File’s Owner in your NIB file).

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

Sidebar

Related Questions

I have an app that has a tabbar at the bottom. When I select
I have an app that has a TableView, NavigationView and TabBar running together. There
I have a class called ListViewController which has a UITableView attached to it and
I have an app that has a tabBar Controller and a navBar Controller. It
I have an TabBar app that I would like to be in landscape and
I have created a Tabbar app where my Uitabbar is located in the app
I'm a relative newbie on iPhone app development but have successfully created a tab
I have a UIViewController subclass called TripViewController. This class has the following method: -
I have a TabBar that I've created through IB, I chose create new project
Sorry but I found no clear answer on that. I have an iphone app

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.