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

  • Home
  • SEARCH
  • 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 8374257
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:52:59+00:00 2026-06-09T14:52:59+00:00

In my applicationWillEnterForeground , I check and send a notification if data refresh is

  • 0

In my applicationWillEnterForeground, I check and send a notification if data refresh is necessary:

[[NSNotificationCenter defaultCenter] postNotificationName:@"refreshModelNotification" object:nil];

The only observer for that particular notification is a particular view controller:

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshData:) name:@"refreshModelNotification" object:nil];

That view controller is one of several inside a UITabBarController.

My question is: what happens if that view controller isn’t the active tab when the notification is sent?

Thanks in advance.

  • 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-09T14:53:00+00:00Added an answer on June 9, 2026 at 2:53 pm

    If the observer is still set for the view controller the view controller will still receive the notification and behave normally except any visual changes to the view controller’s view will not be seen

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

Sidebar

Related Questions

I am having NSTimer that check for latest data from server every 15 seconds.
I've implemented application:didReceiveRemoteNotification: to store data in my app when a push notification is
Does didFinishLaunchingWithOptions happens after: applicationWillResignActive applicationDidEnterBackground applicationWillEnterForeground Or does it happen only after applicationWillTerminate?
Before iOS4, my app's initial view controller would check a passcode on/off settings variable
I want to detect application states and send it to the server. In the
I have written code in -(void)applicationWillEnterForeground:(UIApplication *)application , but my application is not detecting
I add this function to post a notification when the app enter foreground: -
In my application when user hits home button I save the data in NSUserDefaults
After receiving a notification, I didn't tap the alert view. A moment later, I
I want my app to reload data as soon as the app switches from

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.