NSDictionary *dict =[[NSDictionary alloc] initWithObjectsAndKeys:@"通知",@"lbl1", nil];
//创建通知
NSNotification *notification =[NSNotification notificationWithName:@"tongzhi" object:nil userInfo:dict];
//通过通知中心发送通知
[[NSNotificationCenter defaultCenter] postNotification:notification];
[self.navigationController popViewControllerAnimated:YES];
[self dismissViewControllerAnimated:YES completion:nil];
//注册通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tongzhi:) name:@"tongzhi" object:nil];
- (void)tongzhi:(NSNotification *)text{
NSLog(@"%@",text.userInfo[@"lbl"]);
}