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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:03:50+00:00 2026-06-04T18:03:50+00:00

I have a UITableViewController which is supposed to fetch data in the background and

  • 0

I have a UITableViewController which is supposed to fetch data in the background and then refresh the UITableView. However when I run the update method in the background it breaks all transition animations in the entire app (Slides when pushing view controllers on to the navigation stack). Weirdly, the exact same model works in other classes very similar to this one.
Here is the call I’m using for background updating:

[self performSelectorInBackground:@selector(updateData) withObject:nil];

However this works, but is of course not done in the background:

[self updateData];

And finally the method being run:

- (void)updateData{
    updating = YES;
    [progress show:YES];
    dataSource = [[NetworkHandler sharedInstance:self] getRaces];
    [progress hide:YES];
    updating = NO;
    [self.tableView reloadData];
}

The updating flag is not in any way an attempt at a semaphore, merely a way to ensure that the view doesn’t get updated twice in case the user switches back and forth between views. 😉

  • 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-04T18:03:51+00:00Added an answer on June 4, 2026 at 6:03 pm

    [self.tableView reloadData]; looks like it could cause some kind of threading issue. All updates to the UI should be done in the main thread. So this should work:

    [self.tableView performSelectorOnMainThread:@selector(reloadData)];

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

Sidebar

Related Questions

I am using iPhone SDK 3.1.3. I have a UITableViewController which gets data from
I have a UITableViewController, when there is no data to populate the UITableView, I
I have a UITableViewController which in it's tableView:didSelectRowAtIndexPath method, sets up a view controller,
I have a UITableViewController which I'm populating with data from a web service. While
In my app, I have a UITableViewController which loads calculated data from my Core
I have four buttons, which have to push the same uiTableViewController, with different data
I have a UITableViewController which contains a UITableView. I try to control the UITableViewController's
I have built a UITableViewController for my app which interacts with my core data
I have an UITableViewController which I would like to add UIToolbar to with one
I am using a UITableViewController which uploads a table. I have a Nib File

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.