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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:53:24+00:00 2026-06-04T14:53:24+00:00

I made a custom cell in a UITableView using IB and Storyboards. The code

  • 0

I made a custom cell in a UITableView using IB and Storyboards. The code below is the code to load that custom cell; the problem is although there is valid data in cA.cBusName and cA.cOrderDate, the cell labels (cell.busNameLabel.text, cell.orderDateLagbel.text) do not get set. Question is: Why is this not working?

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath  {

    static NSString *CellIdentifier = @"CustomerListingsCell";

    CustomerListingsCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[CustomerListingsCell alloc]
                initWithStyle:UITableViewCellStyleDefault 
                reuseIdentifier:CellIdentifier];
    }

    // Configure the cell...
    SingletonListOfCustomers *shareInstance = [SingletonListOfCustomers sharedInstance];
    cArray *cA = [shareInstance.listOfCustomers objectAtIndex: indexPath.row];

    cell.busNameLabel.text = cA.cBusName;
    cell.orderDateLabel.text = cA.cOrderDate;

    NSLog(@"\n\nindexPath.row: %d, busNameLabel: %@, orderDateLabel: %@", indexPath.row, cA.cBusName, cA.cOrderDate);
    NSLog(@"\nindexPath.row: %d, cell.busNameLabel: %@, cell.orderDateLabel: %@", indexPath.row, cell.busNameLabel.text, cell.orderDateLabel.text);

    return cell;

}

CustomerListingsCell is defined as:

@interface CustomerListingsCell : UITableViewCell  {

}

@property (nonatomic, strong) IBOutlet UILabel *busNameLabel;
@property (nonatomic, strong) IBOutlet UILabel *orderDateLabel;

@end

The NSLog statement output is:

2012-05-24 14:01:55.363 Blank Fabrics[4876:f803]

indexPath.row: 0, busNameLabel: Hidden Stitches, orderDateLabel:
05/24/2012 2012-05-24 14:01:55.364 Blank Fabrics[4876:f803]
indexPath.row: 0, cell.busNameLabel: (null), cell.orderDateLabel:
(null) 2012-05-24 14:01:55.365 Blank Fabrics[4876:f803]

indexPath.row: 1, busNameLabel: Prager, Software, orderDateLabel:
05/24/2012 2012-05-24 14:01:55.373 Blank Fabrics[4876:f803]
indexPath.row: 1, cell.busNameLabel: (null), cell.orderDateLabel:
(null)

  • 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-04T14:53:26+00:00Added an answer on June 4, 2026 at 2:53 pm

    Are your IBOutlets set for both the labels? Check if cell.busNameLabel is not nil…

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

Sidebar

Related Questions

I made a custom Class named MedinetParse that parses a webrequest. The parsed data
I have a UITableview made up with a custom cell loaded from a nib.
I made a custom cell for a UITableView (subclassing UITableViewCel, e..., and with a
I've made a custom DataGridViewCell that displays a custom control instead of the cell;
I've made custom adapter and call notifyDataSetChanged() then data updates. But after call notifyDataSetChanged()
I made a custom control that is basically a multiline TextBox that allows input,
I made a custom UITableView subclass and implemented this: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { //
I am having a problem with the UITableview cell cutting off strings whose characters
I have a UITableView with custom cells that were defined in the xib file,
Ok. I have made a custom cell for my table, and it contains 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.