2011-02-09 3 views

答えて

1

NSNotification Class Referenceをチェックしてください。 getCurrentCycle方法を持っているコントローラで

、次の行を追加します。

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(getCurrentCycle:) name:@"getCurrentCycle" object:nil]; 

あなたがgetCurrentCycleを呼び出したいときは、これを追加します。

[[NSNotificationCenter defaultCenter] postNotificationName:@"getCurrentCycle" object:nil]; 

また、あなたはあなたのgetCurrentCycleを変更する必要があります〜へ:

- (void)getCurrentCycle:(NSNotification *)notification 
関連する問題