ARC 対応プロジェクトがあります
viewDidLoadに追加されたオブザーバーはほとんどありません
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getSipNotification:) name:@"getSipNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(syncExtensionData:) name:@"syncExtensionData" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showLocalNotification:) name:@"showLocalNotification" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(outgoingCall:) name:@"outgoingCall" object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(playRingtone) name:@"playRingtone" object:nil];
すべてのオブザーバーを削除したいので、viewDidUnloadに次の行を追加しました
[[NSNotificationCenter defaultCenter] removeObserver:self];
今私の質問は、これはすべてのオブザーバーを削除することですか?
そうでない場合、どうすればできますか?
アップデート
単一のオブザーバーを削除したい場合、どうすればよいですか?
助けてください。