My Project has the following structure: Tab Bar -> Nav Bar -> Controller 1 -> Controller 2 -> Controller 3.
All segues except the last one are push segues, while the last one is a modal segue.
After submitting a request, I am trying to dismiss the modal request, followed by popping to Controller 1.
I have tried some variations of the following without any luck. My guess is that 'presentingViewController' is already null.
[self dismissViewControllerAnimated:NO completion:^
{
[self.presentingViewController.navigationController popToRootViewControllerAnimated:YES];
}];
Any ideas how I can achieve this?
Thanks!