我正试着绕过NSNotificationCenter.如果我的App代表中有这样的内容:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(something:)
name:@"something"
object:nil];
-----
-(void)something:(NSNotification *) notification
{
// do something
}
Run Code Online (Sandbox Code Playgroud)
我可以在另一个视图控制器中看到这个吗?在我的情况下,我想在带有表的视图控制器中观察它,然后在收到通知时重新加载表.这可能吗?