In my application, there are two viewControllers like FirstViewController and DetailViewController . When you click on a table cell, go to DetailViewController . In DetailViewController I want to edit and reload the view of the FirstViewController table
How can I use NSNotification for this problem?
Here is the method I want to implement NSNotification stuff
-(IBAction) save{ strSelectedText=theTextField.text; [NSNotificationCenter defaultCenter]; NSNotification* notification = [NSNotification notificationWithName:@"MyNotification" object:self]; [[NSNotificationCenter defaultCenter] postNotification:notification]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector (objFirstViewController) name:@"MyNotification" object:nil]; [self.navigationController popViewControllerAnimated:YES]; }
sajaz source share