在A页面有数据的更新时通知B页面刷新数据的实现:
1. 在A页面发布通知:
[[NSNotificationCenter defaultCenter] postNotificationName:@"refresh" object:nil];
2. 在B页面接收通知,并且执行相应的操作
[[NSNotificationCenterdefaultCenter] addObserver:self selector:@selector(refreshSelf) name:@"refresh" object:nil];
-(void)refreshSelf{
//添加需要执行的操作的代码
}