0
と機能:コール私はクラスAに持ってNSNotificationCenter
-(void)threewaysbuttonshow:(NSNotification *)notification {
NSLog(@" Do something ");
}
と私のクラスBに私はNSNotificationCenterを使用することを考えていたクラスA.
でthreewaysbuttonshoである私の関数を呼び出すしたいと思います。ここで私のコードはBクラスで鳴いていますが、コードが実行されるときに私の関数を呼び出さず、助けに感謝します。
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(threewaysbuttonshow:) name:@"something" object:nil];