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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:34:19+00:00 2026-06-03T06:34:19+00:00

Why does my UITableView not update? Here is how I am attempting to update

  • 0

Why does my UITableView not update? Here is how I am attempting to update it.

- (void)viewWillAppear:(BOOL)animated
{
    NSArray* arrValues = [self.defaults objectForKey:@"values"];
    [self.tableScores insertRowsAtIndexPaths:arrValues withRowAnimation:UITableViewRowAnimationNone];
}

arrValues is now an array of NSNumbers. I am sure that it is not empty.

  • 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-03T06:34:21+00:00Added an answer on June 3, 2026 at 6:34 am

    Call [tableScores reloadData]; in - (void)viewWillAppear:(BOOL)animated

    Update 1

    Also, you need to define arrValues in your header. Each time the viewWillAppear, you are creating a new instance, but you won’t be able to use it throughout the rest of your controller. This is the main reason you aren’t seeing anything besides at your breakpoint.

    Update 2

    According to your comment below, you have not implemented cellForRowAtIndexPath: which is how the cell is created. Below is an example, but you may want to search around the net for example projects because this UITableView’s 101. There is still a lot more you need to learn when it comes to arrays and tableViews.

    Example cellForRowAtIndexPath:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        static NSString *CellIdentifier = @"FriendCellIdentifier";
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
        }
    
        cell.textLabel.text = [arrValues objectAtIndex:indexPath.row];
    
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does any one have tried to customize default section index displayed in UITableView. I
I've got a navigationBar that does not auto-resize when rotating the device anymore. So
Does anyone know how to add a scope bar to a UITableView ? The
My problem is that the cell.textLabel does not display the new data following a
I'm building a UITableView programmatically without NIB files here. I'm doing something silly however,
In an iPad application I'm developing, I want to show a UITableView that does
I have this code in my table view controller (and delegate): - (void)tableView:(UITableView *)tableView
I would like to select multiple rows in a UITableview just like Apple does
I can't get my first UITableView to update with a setting made in a
Why does the touchesBegan method code get trigger in my UITableView? Background: I have

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.