我想打电话给使用NSNotificationCenter无济于事从AppDelegate中一个的UIView内的方法..postNotificationName没有要求观察者方法
AppDelegate.m
[[NSNotificationCenter defaultCenter] postNotificationName:@"ProcessDidComplete" object:items];
然后通过MainStoryboard,其主要观点是加载哪个控制器类是MainViewController
在MainViewController.h viewDidLoad中我有
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ProcessDidComplete:) name:@"ProcessDidComplete" object:nil];
,然后方法
- (void) ProcessDidComplete:(NSNotification *)pNotification
但它永远不会被调用。
感谢您的帮助!
那么,你发布了一个通知,并_after_你注册一个观察员呢? – JiaYow 2012-03-13 10:54:07