1
我想查看并列出或打印已添加到通知中心的观察者。如何检查并列出或打印已添加到通知中心的观察者?
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(appplicationIsActive:)
name:UIApplicationDidBecomeActiveNotification
object:nil];
下面是我会检查,例如:
if(Observer in Notification Center){
.....
.....
}else{
.....
.....
}
存在哪里?不明白你的意思。请详细说明您的问题。 – lukya