//创建通知
NSNotification *notification =[NSNotification notificationWithName:@"tongzhi" object:nil userInfo:nil];
//通过通知中心发送通知
[[NSNotificationCenter defaultCenter] postNotification:notification];
//接受通知
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(PayFun)name:@"tongzhi" object:nil];