I have a firstViewController embedded in a firstNavigationController that has a modal segue to a new secondViewController embedded in another secondNavigationController. This new controller performs an unwind segue back to the firstViewController
secondViewController:
- (void) cancelAction{
[self performSegueWithIdentifier:@"backHoney" sender:self];
}
firstViewController:
- (IBAction)backToHoney:(UIStoryboardSegue *)sender{
}
This works but there is a case when another viewC embedded in a Nav has a modal segue to the firstViewController. When the user goes from this viewC to the firstViewController then to the secondViewController and tries to unwind back to the first, it unwinds all the way back to viewC instead of the first.