我对为什么在以下代码中从未删除观察者感到困惑。在我的viewDidAppear中,我有以下内容:-(void)viewDidAppear:(BOOL)animated{idgpsObserver=[[NSNotificationCenterdefaultCenter]addObserverForName:FI_NOTES[kNotificationsGPSUpdated]object:nilqueue:[NSOperationQueuemainQueue]usingBlock:^(NSNotification*note){NSLog(@"runonce,andonlyonce!");[
我对为什么在以下代码中从未删除观察者感到困惑。在我的viewDidAppear中,我有以下内容:-(void)viewDidAppear:(BOOL)animated{idgpsObserver=[[NSNotificationCenterdefaultCenter]addObserverForName:FI_NOTES[kNotificationsGPSUpdated]object:nilqueue:[NSOperationQueuemainQueue]usingBlock:^(NSNotification*note){NSLog(@"runonce,andonlyonce!");[