//在你需要收到值使用的地方创建通知在ViewDidLoad
[[NSNotificationCenter defaultCenter] addObserver:<#(id)#> selector:<#(SEL)#> name:<#(NSString *)#> object:<#(id)#>];
// 在你需要把值传走的地方把值发送
[[NSNotificationCenter defaultCenter] postNotificationName:<#(NSString *)#> object:<#(id)#>];
//注意 postNotificationName和name要一致,这样才可以找到那个通知

posted on 2015-10-21 14:20  Aaron_森  阅读(166)  评论(0编辑  收藏  举报