2014-07-23 67 views
1

我想查看並列出或打印已添加到通知中心的觀察者。如何檢查並列出或打印已添加到通知中心的觀察者?

[[NSNotificationCenter defaultCenter] addObserver:self 
              selector:@selector(appplicationIsActive:) 
               name:UIApplicationDidBecomeActiveNotification 
               object:nil]; 

下面是我會檢查,例如:

if(Observer in Notification Center){ 

    ..... 

    ..... 

}else{ 

    ..... 

    ..... 

} 
+2

存在哪裏?不明白你的意思。請詳細說明您的問題。 – lukya

回答

相關問題