removeObserver:name:object:
遠隔通知センターから名前とオブジェクトでオブザーバーを取り除きます
-(void)removeObserver:(id)anObserver: name:(NSString *)notificationName: object:(NSString *)anObject:
解説
遠隔通知センターから名前とオブジェクトでオブザーバーを取り除きます。
返り値
( void )
なし
引数
( id )anObserver
オブザーバー
( NSString * )notificationName
通知名
( NSString * )anObject
オブジェクト
フレームワーク
Foundation
クラス
NSDistributedNotificationCenter
Instance Methods
使用可能
10.0
参照
例文
-(void)dealloc { [[NSDistributedNotificationCenter defaultCenter] removeObserver:self name:@"DOServer_AllNotification" object:nil ]; [super dealloc]; }