ios 广播传值

[[NSNotificationCenter defaultCenter] postNotificationName:@"callOutWithChatter" object:@{@"chatter":self.chatter, @"type":[NSNumber numberWithInt:eCallSessionTypeVideo],@"isOrderChater":isOrderChatter}];​//广播端传递三个参数

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(callOutWithChatter:) name:@"callOutWithChatter" object:nil];//广播中心接受

- (void)callOutWithChatter:(NSNotification *)notification

{   

id object = notification.object;  

NSString *chatter = [object objectForKey:@"chatter"];

}//接受到以后,在事件里面处理接收到参数,

原文地址:https://www.cnblogs.com/linusflow/p/8541772.html