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

The Archive Base Latest Questions

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

UPDATE: I’ve solved this now – see my own comment. Amazing how often writing

  • 0

UPDATE: I’ve solved this now – see my own comment. Amazing how often writing out the problem can lead to the resolution when you go through it again!


I must have read every thread on SO and the examples on Apple, but I just can’t get this to work in my case and I wonder what I’m doing wrong?

I have made a custom cell in IB with XCode 4. The file’s owner is set to the class of the custom view controller for the table and I have an IBOutlet for the UITableView cell which is hooked up OK from what I can tell. I normally do all my table cells via code and use the fast scrolling method, but for this project I really need to use nibs to load the cell content and I’m having some grief I can’t figure out.

So in my interface file I have;

@interface myCustomTableViewController <various delegates> {

   UITableViewCell *customNibCell;
   ...     
}

@property (nonatomic,assign) IBOutlet UITableViewCell *customNibCell;

In the customTableViewController I do this in my cellForRowAtIndexPath;

   UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@:"customDirCell"];

    if (cell == nil) {

        [[NSBundle mainBundle] loadNibNamed:@"DirectoryCellWithMenu" owner:self options: nil];

        cell = customNibCell;
        self.customNibCell = nil;

     }

     [self configureCell:cell atRow:indexPath.row];

And my configureCell method does this to reach into the cell and pull out the things I wish to customise.

UIImageView *fileImageView = (UIImageView *)[cell viewWithTag:3];
UILabel *headingTextLabel = (UILabel *)[cell viewWithTag:4];
UILabel *modifiedTextLabel = (UILabel *)[cell viewWithTag:5];
UILabel *sizeTextLabel = (UILabel *)[cell viewWithTag:6];

The Problem

The cells do load into the table OK in as much as I can see the correct layout. Furthermore, the custom actions I have defined on various buttons do all fire OK so it seems that the cell is hooked up properly.

BUT none of the customisation works – I can’t seem to change the text of any of the labels for example and on investigation, the result of every [cell viewWithTag:nn] is nil which clearly signposts the problem, but I can’t see what the cause is.

  1. The identifier for the
    UITableViewCell is set to
    “customDirCell”
  2. The object identities for the labels
    etc are indeed 3,4,5,6 according to
    IB
  3. The xib contains exactly 1 object,
    the UITableViewCell

I can’t see anything wrong with either the nib file creation or the code, but I’m obviously missing something!

Can any kind soul shed light on where I should be looking?

  • 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-21T11:15:35+00:00Added an answer on May 21, 2026 at 11:15 am

    I’ve resolved this as per my comment.

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

Sidebar

Related Questions

UPDATE - No need to answer this now, I have solved below. Hi, I'm
Update: Solved, with code I got it working, see my answer below for the
Update: Check out this follow-up question: Gem Update on Windows - is it broken?
Update: Now that it's 2016 I'd use PowerShell for this unless there's a really
Update : this is more-or-less a dupe , and it turns out to be
UPDATE - A comprehensive comparison, updated as of February 2015, can be found here:
Update: Please read this question in the context of design principles, elegance, expression of
UPDATE : I got my O3D situation straightened out, but I have yet to
Update: As someone pointed out I was missing an s in my Route registration.
UPDATE: Turns out my code works. Browser was caching previous failed response. Thanks for

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.