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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:36:39+00:00 2026-05-16T05:36:39+00:00

I have a UITableView that loads remote data from the network. I have logic

  • 0

I have a UITableView that loads remote data from the network. I have logic in viewWillAppear to handle refreshing the data when needed based on state changes and a TTL for the data set. This works fine within an app “session” but isn’t effective when the user exits the app to the background and later restores it directly to this view.

What I’m finding is that when the app is restored to the foreground in iOS4 – viewWillAppear is not invoked in the view- I can totally understand why this is by design. Is there another UIView delegate I should be taking advantage of? I didn’t spot anything in the docs.

Since willEnterForeground is available in the app delegate is the best way to handle this firing a notification from the app delegate to the view? Am I missing a more direct an elegant way of catching this in a UIView?

Thanks for any tips.

  • 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-16T05:36:39+00:00Added an answer on May 16, 2026 at 5:36 am

    You are correct about the delegate calls, though for what you are doing it sounds to me like you will want to suspend and resume your network activity based on the methods applicationDidBecomeActive: and applicationWillResignActive: which are both on the app delegate.

    In answer to your question about a more direct way of catching these notifications in your UIView, if you do not have convenient access to the app delegate you could register for notification of UIApplicationDidBecomeActiveNotification and UIApplicationWillResignActiveNotification via the default notification center. That somewhat detaches you from coupling the app delegate to your view.

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

Sidebar

Related Questions

I have a UITableView which loads data from XML using the below code. It
I have a UITableView which loads its data from the web. It takes a
I have a uitableview that loads fairly large images in each cell and the
I have a main uinavigationcontroller that loads a uitableview as a subview as my
I have a UITableView that lists comments from various users. I save all of
I have a UITableView that is being populated by core data. Now, when I
I have a UITableView that displays various nsstrings from a custom object called a
I have a UITableView that loads content into a UIWebView like this: //MainViewController.m -
I have found that the first time a UITableView loads, it does not respond
I have an NSURL object which gets data from my site, based on a

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.