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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:23:44+00:00 2026-05-25T15:23:44+00:00

I have my MainViewController which a UIViewController class, in this view I have a

  • 0

I have my MainViewController which a UIViewController class, in this view I have a table view and another view embedded in it. As you can see I added the table view delegates to the view controller.

@interface MainViewController : UIViewController <FlipsideViewControllerDelegate,   UITableViewDataSource, UITableViewDelegate> {

Now to my question which has been asked about 50 times from multiple searches on the internet but still I have not been able to find a solution.

Why doesn’t reloadData work…?

I am downloading info from an XML feed and I refresh the feed from the app delegate:

- (void)applicationDidBecomeActive:(UIApplication *)application

I have inserted multiple NSLogs, this is what I have found. The refreshed data from the XML feed is coming in no problem. But the table view cells are not being refreshed.

I placed a NSLog in:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

Although the data is being refreshed, when I call [tableView reloadData]; the cellForRowAtIndexPath is never called.

I am hoping someone can help me with this issue, I have been working on this issue for about 12 hours with no luck. I have exhausted the search button on multiple sites….

FYI:
-Table View is wired in Interface Builder.

-My tables are being loaded one by one via TableViewCells, following Apples example starting on page 51 of the Table View Programming guide.

Additional Code:

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
// Return the number of sections.
return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return 17;
}

Thanks for the help

  • 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-25T15:23:45+00:00Added an answer on May 25, 2026 at 3:23 pm

    Everything is working now… That was a lot of time wasted on my part…

    - (void)applicationWillEnterForeground:(UIApplication *)application
    {
    [_mainViewController refresh];
    [_mainViewController.tableView reloadData];
    }
    
    - (void)refresh {
    Parser *xmlParser = [[Parser alloc] init];
    [xmlParser parseRssFeed:@"http://www.somesite.com/file.xml" withDelegate:self];
    [xmlParser release];
    [self.tableView reloadData];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have this MainViewController, which is a controller for my table view. Whenever I
I have a view controller, MainViewController in which I have a UIButton as an
I have a UIViewController which when it loads it loads up this.. MapViewController *mapController
Newbie Q. In my MainViewController, which is the first visible view. I have a
I'm currently working on an app with this structure: I have a view controller
I have three view controllers. I used the flipsideproject template and then added another
I have a very basic view controller class, created via interface builder. it only
I have a mainViewController. I call [self pushModalViewController:someViewController] which makes someViewController the active view.
I have a viewController called MainViewController, which has a UIButton. When tapped, this button
I have a view in my storyboard which I assigned an identifier called MainView.

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.