I want to go back two levels on my view controller stack. I have three segues in this order: Show, Show, Present Modally. There is a navigation controller in use. From my 4th view I want to go back to the 2nd view. I have tried using
self.presentingViewController?.presentingViewController?.navigationController?.popViewControllerAnimated(false);
and
self.presentingViewController?.presentingViewController?.dismissViewControllerAnimated(false, completion: nil);
The second one works only if the 2nd and 3rd segues as 'Present Modally'. How can I get them to work with a dismiss and a pop?
Try dismissing the presented view controller before popping the other two: