title: How to the get UIViewController which presented a UINavigationController
body: <p>I have</p>
  
  <pre><code>NAVIGATIONController A -&gt; ViewController A -&gt; ViewController B
                                                    |
                                                    | (modal)
                                                    | 
                                                   \ /
                                                    '
                                           NAVIGATIONController B -&gt; ViewController C
  </code></pre>
  
  <p>How do I go back to ViewController A from C?</p>
  
  <p>When I am in ViewController C, I tried to print the different controller values:</p>
  
  <pre><code>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
  </code></pre>
  
  <p>I know how to go back to MyViewController B from MyViewController C, with this line <code>self.navigationController?.dismissViewControllerAnimated(true, nil)</code> but I am asking to go from C to A :-)</p>
  
  <p>How do I even have access to what is before NAVIGATIONController B?</p>