0
내 applicationWillEnterForeground
, 나는 확인하고 데이터 새로 고침이 필요한 경우 통지를 보내 컨트롤러를 볼nsnotification이 비활성 viewcontroller로 전송되면 어떻게됩니까? 에서
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshData:) name:@"refreshModelNotification" object:nil];
하나입니다
[[NSNotificationCenter defaultCenter] postNotificationName:@"refreshModelNotification" object:nil];
특정 통지에 대한 유일한 관찰자가 특정 뷰 컨트롤러 여러 내부에 UITabBarController
.
제 질문은 : 해당보기 컨트롤러가 알림을 보낼 때 활성 탭이 아닌 경우 어떻게됩니까?
미리 감사드립니다.