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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:44:53+00:00 2026-05-26T06:44:53+00:00

How can I reload a UITableView without noticing the user behind the iDevice? I’m

  • 0

How can I reload a UITableView without noticing the user behind the iDevice?

I’m updating my UITableViews datasource in -applicationWillEnterForeground: by sending a notification to my RootViewController that observes the notification and runs a selector that calls [self.table reloadData] but I want this update to be made in stealth and not showed to the user.

It seems that -viewWillAppear: is fired before -applicationWillEnterForeground:

  • 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-26T06:44:54+00:00Added an answer on May 26, 2026 at 6:44 am

    I’m a little confused by your question, but I think what you’re looking for is a way to reload the data before it appears on screen, yes?

    I’d say figure out a way to call your data refresh method directly, not via a notification. The notification de-couples the data refresh from -applicationWillEnterForeground, giving the view time to appear.

    Sequence is probably something like this:

    1. applicationWillEnterForeground
    2. viewWillAppear
    3. The view appears.
    4. Notification observer method is called

      a) Notification observer method calls [self.table reloadData]

    5. Table view refreshes on-screen.

    What you want is to couple your notification method to a method that gets called before the view appears. Call it directly from applicationWillEnterForeground or viewWillAppear.

    That way it’ll play out like this:

    1. applicationWillEnterForeground

      a) your data refresh method is called. (no need to call [self.table reloadData], the tableView hasn’t loaded the data at all yet.)

    2. viewWillAppear
    3. The view appears.
    4. Table view is loaded with already refreshed data.

    or like this:

    1. applicationWillEnterForeground
    2. viewWillAppear

      a) your data refresh method is called. (no need to call [self.table reloadData], the tableView hasn’t loaded the data at all yet.)

    3. The view appears.
    4. Table view is loaded with already refreshed data.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can you please tell me how I can reload a windows form without closing
I'm a bit confused on how I can reload the cells in a UITableView
Can I reload iframe (say __tree_iframe) from another child iframe (__content_iframe)? Difficulty: IE6/7. UPDATE
How can we check for UITableView finishes reloading.. Actually I want to call other
How one can reload the custom JavaScript file after an Ajax call is completed?
When I have a UITableView as part of the visible view controller, how can
I have 2 UITableView in UIView , when reload the data of the second
I know you can reload rows using reloadRowsAtIndexPath:withRowAnimation. how can you create an animation
I use an O/R mapper, that can reload objects from the DB in a
When using UITableView, we can reuse its cells using [[ UITableViewCell alloc] initWithStyle: reuseIdentifier:]

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.