NSNotification

2017-02-22  本文已影响10人  onlyyourself

发通知

NSNotification *deleteMyCommemtN =[NSNotification  notificationWithName:@"deleteMyCommemt"  object:nil userInfo:dictM];

[[NSNotificationCenter defaultCenter] postNotification:deleteMyCommemtN];

接收通知

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(sendCommemt:)name:@"sendCommemt" object:nil];

方法调用

-(void)deleteMyCommemt:(NSNotification *)dict

{

}

上一篇 下一篇

猜你喜欢

热点阅读