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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:08:14+00:00 2026-05-20T02:08:14+00:00

My 2nd time today… But here are so many good developers… Hi, I have

  • 0

My 2nd time today… But here are so many good developers…

Hi,

I have some troubles with my tableView… If the view will appear my table reloads its data, but it doesn’t update the numbersOfRowsInSection…

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    NSLog(@"COUNTER: %i",[content count]);
    return [content count];
}

The log says the first time I load the page the right value. But if I add an object and reload the data, this function isn’t calling.

Is there anyone who know the solution?

Thanks,
mavrick3.

EDIT:

Heres how I call [table reloadData]

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if ([content count] != 0) {
        self.content = [[[[NSArray alloc] initWithContentsOfFile:[FileManager filePath]] objectAtIndex:row_] objectForKey:@"faecher"];
        [table reloadData];
        NSLog(@"----%@",content);
    }
}

And yes, the dataSource and delegate are connected and they are both implemented in my header.

  • 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-20T02:08:14+00:00Added an answer on May 20, 2026 at 2:08 am

    If you call reloadData on a UITableview object and you’re it’s dataSource then this method should be called called.

    Are you sure that you have assigned your table view to your property (i.e. dragged it across in interface builder?)

    I suspect that you have only made your controller the dataSource of your table view (hence the first time it loads it gets the value). After that your calls to reloadData won’t work because the property in your view controller is still nil.


    You can test this by putting an NSLog just before you call reloadData – if it outputs nil then you’ve not connected it.

    NSLog(@"%@", myTable);
    [myTable reloadData];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the 2nd time I have asked this. How do I draw an
I’m doing a patient registration system to a hospital, here we have 1st time
I'm trying to execute 2nd time PreparedStatement , but it fails if I close
I'm just beginning to use CKEditor, but have a hard time understanding the plugins
I am doing 2nd year computer science and we have a software engineering group
I began reading the book Code Complete 2nd edition, but stopped reading when I
the first time the code is executed it correctly produces: load complete but the
at the start and end of my program, I have from time import strftime
I have a requirement that the navigation bar be hidden by default. It will
I ran the code below expecting flow to be locked on the 2nd time

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.