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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T05:25:54+00:00 2026-06-07T05:25:54+00:00

I hope someone can help… I’ve setup a static UITableView Controller with four sections.

  • 0

I hope someone can help…

I’ve setup a static UITableView Controller with four sections. The top two sections are for inputting data. The third section has 1 cell and contains a save button.

The final section has 6 cells and I want to be able to populate these six cells with the data from the first two sections, in the long run anyway…

So i tried to a small example, but it’s not working. The console returns the following error:

UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:’
* First throw call stack:

Here’s an example:

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

    NSIndexPath *EditRow = [NSIndexPath indexPathForRow:1 inSection:4];
    UITableViewCell *cell = [tableView cellForRowAtIndexPath:EditRow];

    NSString *test = @"Test";
    cell.textLabel.text = test;

    NSLog(@"Index Path: %d", indexPath.row);
    NSLog(@"Cell ID:, %@", CellIdentifier);

    return cell;
}

So my question comes down to.. How do I update a specific cell in a specific section?

Thanks

  • 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-07T05:25:56+00:00Added an answer on June 7, 2026 at 5:25 am

    When I implement static cells, I delete the cellForRowAtIndexPath, numberOfSectionsInTableView, and numberOfRowsInSection methods from the generic UIViewController stub that Xcode generates; these seem to be necessary only when you’re dealing with dynamic cells.

    Then, by control-dragging in the storyboard, I create named outlets for all UI elements in the cells that need to be set programmatically; in my case, these are usually UILabels. In the viewDidLoad method of the controller, I set the appropriate initial values of these outlets, for example:

    self.nameLabel.text = self.dataSource.name;
    

    Once you’ve got this wired up, you can change any of the values at will.

    I hope that this works for you. I’d be happy to learn from anyone who has a better (more appropriate?) way of doing this.

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

Sidebar

Related Questions

hope someone can help. I have two tables: Users -UserID -UserName UsersType -UserTypeID -UserID
Hope someone can help i cant seem to get my head around this, i
Hope someone can help me out with this problem I am having. I just
I hope someone can help me with this, as I'm unable to find the
I hope someone can help here, we're having an incredibly annoying time with Visual
I hope someone can help, I am trying to enable enable ASP.Net Impersonation under
I hope someone can help with the following. I'm trying to create a user-specific
I need to do a non greedy match and hope someone can help me.
I'm almost losing it, i really hope someone can help me out! I'm using
I am stuck and in need of a hand. Hope someone can help? Anyone

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.