发送:[[NSNotificationCenter defaultCenter] postNotificationName:@"detectPwd" object:self userInfo:@{@"msg":dict}];
接收:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(recerveAcquareCodeObserver:) name:@"detectPwd" object:nil];
-(void)recerveAcquareCodeObserver:(NSNotification *)sender{
NSDictionary * dic = sender.userInfo;}
移除:[[NSNotificationCenter defaultCenter] removeObserver:self name:@"detectPwd" object:nil];
}
网友评论