I have the current setup where ->
is a modal presentation (presentViewController()
):
ViewController A -> NavigationController B:
ViewController C
ViewController D -> ViewController E
I am currently inside ViewController E
. I would like to dismiss all the modally presented view controllers so that I can get back to ViewController A
. It seems that whatever I try on ViewController E
, (dismissViewController()
with self
, parentViewController
, presentViewController
, navigationController
) I am easily able to dismiss ViewController E
but cannot dismiss ViewController B
and all of its sub view controllers. It seems to me that I have lost all references to it yet when ViewController E
is dismissed, ViewController D
(a sub view controller of the navigation controller NavigationController B)
is still visible.
Any help to dismiss both ViewController E
and NavigationController B
and all of its sub view controllers would be very much appreciated.