服务端:
[[NSNotificationCenter defaultCenter]postNotificationName:@"selectedCallBack" object:nil];
接受方:
[[NSNotificationCenter defaultCenter]removeObserver:self name:@"selectedCallBack" object:nil];
[[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(popupSelected) name:@"selectedCallBack" object:nil];
本文介绍了在iOS开发中如何利用NSNotification进行服务端与接受方之间的消息传递。具体包括服务端如何发送NSNotification以及接受方如何注册和移除观察者。

272

被折叠的 条评论
为什么被折叠?



