notification

A页面

 //向列表页面B发送一个通知 postShopZanCountData

 NSMutableDictionary *dic=[[NSMutableDictionaryalloc] init];

        

[[NSNotificationCenterdefaultCenter] postNotificationName:@"postData"object:niluserInfo:dic];

 

B 页面

 

 

 [[NSNotificationCenterdefaultCenteraddObserver:selfselector:@selector(update:) name:@"postData"object:nil];

 

-(void)update:(NSNotification*)notification{

    

    NSDictionary *dic=notification.userInfo;

 

}

posted @ 2013-09-02 17:58  xiaoxiaoxigua  阅读(234)  评论(0编辑  收藏  举报