1.創(chuàng)建通知
創(chuàng)建通知
NSNotification *notification = [NSNotificationnotificationWithName:@"refresh" object:niluserInfo:dictplist];
通過(guò)通知中心發(fā)送通知
[[NSNotificationCenter defaultCenter] postNotification:notification];
2.接收通知并進(jìn)行相依處理
接收通知
- (void)refresh:(NSNotification *)text
{
NSLog(@"%@",text.userInfo);
self.dic = [[NSMutableDictionary alloc] initWithDictionary:text.userInfo];
NSLog(@"-----接收到通知------");
[self.leftTableView reloadData];
[self.rightTableView reloadData];
}