将nsnotification发送到非活动视图控制器时会发生什么?

问题描述:

在我applicationWillEnterForeground,我检查,如果数据刷新需要发送一个通知:将nsnotification发送到非活动视图控制器时会发生什么?

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

该特定通知唯一的观察者是一个特殊的视图控制器:

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

该视图控制器是一个几个在UITabBarController之内。

我的问题是:如果该通知发送时该视图控制器不是活动选项卡会发生什么?

在此先感谢。

如果观察者仍然设置为视图控制器,视图控制器仍然会收到通知并且行为正常,除非视图控制器视图的任何视觉更改将不会被看到