私はView Controllerベースを持っていますUITableViewController
.更新通知を受け取ったときにテーブルビューをリロードしたいです:
if (self) {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateApStatus:) name:@"UpdateApStatus" object:nil];
}
- (void)updateApStatus{
NSLog(@"......updateApStatus......");
[self.tableView reloadData];
}
そして、私は他のクラスに通知を投稿します:
[[NSNotificationCenter defaultCenter] postNotificationName:@"UpdateApStatus" object:self];
エラーは次のとおりです。
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MenuViewController updateApStatus:]: unrecognized selector sent to instance 0xb25bf80'
アクセス出来ないらしいself