
Hi, can anyone help me to understand NSNotificationCenter better ..? If possible then please provide me an example or tutorial of nsnotificationcenter in objective c.
Thanks!

Thanks 4 help.

// Adding an observer to the Notification
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(dismissAlert:) name:@"loginComplete" object:nil];
// Post a notification
[[NSNotificationCenter defaultCenter] postNotificationName:@"loginComplete" object:nil];
// the void function, specified in the same class where the Notification addObserver method has defined
- (void)dismissAlert:(NSNotification *)note {
NSLog(@"Received Notification - ");
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.