I have a
UIViewController (a) which is the root view controller in a
UINavigationController (b). The
UINavigationController is displayed modally (via a
segue) from another
UIViewController (c) that is completely separate.
The issue I'm having is that when I try to dismiss the modally displayed vc (a) I get a black screen with nothing being displayed. I would have expected to see (c) displayed though.
What is the correct way that I should be dismissing (a) which lives in (b) so that (c) is correctly visible afterwards?
I have tried the following so far, none of which worked:
self.dismissViewControllerAnimated(true, completion: nil); self.navigationController!.dismissViewControllerAnimated(true, completion: nil); self.presentingViewController?.dismissViewControllerAnimated(true, completion: nil);