//接收通知
[[NSNotificationCenter defaultCenter] addObserver: selfselector:@selector(xxxxx)name:@"xxxxx"object:nil];
-(void)xxxx
{
}
//释放通知 [[NSNotificationCenter defaultCenter] removeObserver:selfname:@"" object:nil];
//发送通知
[[NSNotificationCenter defaultCenter] postNotificationName:@""object:self];