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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:00:27+00:00 2026-05-25T19:00:27+00:00

Okay so I am creating a custom uitablviewcell in IB and the class I

  • 0

Okay so I am creating a custom uitablviewcell in IB and the class I have created is called CustomCell
I have imported it in the header file and here is some code

 // Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

static NSString *CellIdentifier = @"CustomCell";

CustomCell *cell = (CustomCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {

    NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];

    for (id currentObject in topLevelObjects){
        if ([currentObject isKindOfClass:[UITableViewCell class]]){
            cell =  (CustomCell *) currentObject;
            break;
        }
    }
}

//errors start
cell.usernameText.text = [usernameArray objectAtIndex:[indexPath row]];
cell.regionText.text = [regionArray objectAtIndex:[indexPath row]];
cell.gamesText.text = [gamesArray objectAtIndex:[indexPath row]];
cell.infoText.text = [aboutArray objectAtIndex:[indexPath row]];
cell.concoleText.text = [concoleArray objectAtIndex:[indexPath row]];
cell.micText.text = [NSString stringWithFormat:@"Mic:%@",[MicArray objectAtIndex:[indexPath row]]];

cell.ageText.text = [ageArray objectAtIndex:[indexPath row]];   
  //till her
return cell;
}

why is there an error and what can i do to fix it.

  • 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-25T19:00:27+00:00Added an answer on May 25, 2026 at 7:00 pm

    Do you have class for your CustomCell(UITableViewCell)
    and have the member usernameText, regionText, gamesText, infoText, concoleText, micText, and ageText of your CustomCell ? If no then you will get a warning Request for member variables is something not a structure because these are not the member variable. If you have not created separate class file for that then you may call cell.textLabel.text = @”Welcome” textLabel is the member of UITableViewCell.

    and you did not tell use what ERROR you were getting?

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

Sidebar

Related Questions

Hey guys. I have some difficulty in creating a filename. okay, here is what
Okay, so here's my problem: We use FOP for creating pretty report output. We
Okay, so, here's what the problem is. I'm creating a flash site with each
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, so you have a load of methods sprinkled around your system's main class.
Okay im creating a mobile site and I have a page of images and
Okay this one's pretty straightforward. I'm creating a checkbox in my Page.xaml.cs file, and
Okay, so I am creating a ticker of sorts, and I had some pretty
Okay, I'm having serious problems here. On my own computer, this code works just
Okay, this is a bit abstract, but here goes: I'm creating a website and

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.