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.