I have
NAVIGATIONController A -> ViewController A -> ViewController B
|
| (modal)
|
\ /
'
NAVIGATIONController B -> ViewController C
How do I go back to ViewController A from C?
When I am in ViewController C, I tried to print the different controller values:
print(self.navigationController) //NAVIGATIONController B
print(self.navigationController?.presentingViewController) //UINavigationController (not sure what this is? It is not one of my classes)
print(self.navigationController?.presentedViewController) //nil
print(self.presentingViewController) //The same UINavigationController (still not sure...)
print(self.presentedViewController) //nil
I know how to go back to MyViewController B from MyViewController C, with this line self.navigationController?.dismissViewControllerAnimated(true, nil)
but I am asking to go from C to A :-)
How do I even have access to what is before NAVIGATIONController B?