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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:54:31+00:00 2026-05-21T22:54:31+00:00

Following the documentation on custom cells from a NIB (the Dynamic option), I have

  • 0

Following the documentation on custom cells from a NIB (the Dynamic option), I have this method. (The view itself is not a UITableViewController, but it’s hooked up properly.)

- (UITableViewCell *)tableView:(UITableView *)tableView
         cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *CellIdentifier = @"ReusableCell";

    UITableViewCell *cell = (LoadGameCell *)
                  [tableView dequeueReusableCellWithIdentifier:CellIdentifier];

    if (cell == nil) {
        cell = [[NSBundle mainBundle]
                    loadNibNamed:@"LoadGameCell" owner:self options:nil];
        cell = loadGameCell;
        self.loadGameCell = nil;
    }

    /*
     cell setup
     */

    return cell;
}

The first line in the if statement is the bit I’m having trouble with.

Incompatible pointer types assigning to 'UITableViewCell *' from 'NSArray *'

Incompatible Objective-C types assigning 'struct NSArray *',
                                expected 'struct UITableViewCell *'

No errors/crashes running the app with these warnings, but I’d rather not ignore/suppress them. It’ll hurt a whole lot more later on.

If it isn’t a direct result of the warnings above, there’s another problem. I can’t get the method to take views, only labels. (That is, I can customize a label, but not the image view it’s sitting next to.)

  • 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-21T22:54:31+00:00Added an answer on May 21, 2026 at 10:54 pm

    As the documentation will tell you, loadNibNamed:owner:options: returns an array. To access the cell in the NIB (assuming it is the only root-level object in the NIB), call objectAtIndex:0 on the result of loadNibNamed:owner:options.

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

Sidebar

Related Questions

Our 3rd Party app has a custom View with the following: FROM dbo.vwPositionAssetSubWeight INNER
jCarousel documentation states the following: By passing the callback function itemLoadCallback as configuration option,
The PHP documentation says the following about the __call() magic method: __call() is triggered
I've implemented a custom sort for a aspxgridview, following the steps mentioned here: http://documentation.devexpress.com/#AspNet/CustomDocument3818
The Django documentation states the following clearly: Not every template in contrib\admin\templates\admin may be
I have the following situation: taglib.jar : A custom JSP taglib packaged as a
I have a custom class with a serialize method, and I want to be
I am writing a custom NSView subclass. I have several instances of this class
I have the following problem with QT model/view framework. I want to render a
I am having trouble wiht UITableViewCell loaded from nib. I used apple documentation to

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.