I'm trying to pass data back to my source view controller by performing an unwind segue. I found an answer for this here: Unwind segue with Navigation back button
I followed the instructions in the first answer, but the segue is never triggered.
In the source view controller's .h:
- (IBAction)returnJ:(UIStoryboardSegue *)segue;
Here's my source view controller .m:
- (IBAction)returnJ:(UIStoryboardSegue *)segue
{
NSLog(@"Returned");
if ([[segue identifier] isEqualToString:@"return Jobs"]) {
NSLog(@"Retuned");
resSolarViewController *returnController = [segue sourceViewController];
if (returnController.jobsList) {
self.jobs = returnController.jobsList;
[[self tableView] reloadData];
}
[self dismissViewControllerAnimated:YES completion:NULL];
}
}
I'm pretty sure I have everything hooked up correctly in IB, but the neither of the NSLogs are never shown in the console.
What am I doing wrong?
Thanks.