title: Navigating Back In Navigation Controller/Not Reaching Root
body: <p>I may have designed myself into a corner here, but I am seeking some insight in navigating backwards in a Navigation Controller stack.  In my storyboard, I have a layout like so;</p>
  
  <p><a href="https://i.stack.imgur.com/jSsal.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jSsal.png" alt="Navigation Controller Layout"></a></p>
  
  <p>The second Table View segues to itself, allowing a user to navigate forward an unlimited number of times, dependent on what is being populated in the table.  This is working properly.</p>
  
  <p>I have implemented a <strong>Back</strong> button on my second Table View, which is hooked up to a <em>goBack</em> action, like so;</p>
  
  <pre><code>@IBAction func goBack(segue:UIStoryboardSegue) {
      navigationController?.popViewControllerAnimated(true)
  }
  </code></pre>
  
  <p>This works properly for navigating back though all of the "looped segues" (I don't have a better term for this), but the back button will only go back to the first instance of the second Table View controller, and never back to the first Table View controller.  While I realize I do not have a segue for going back to the first Table View controller, I am trying to figure out a way have the same <strong>Back</strong> button in the second Table View go back to the first Table View Controller, once it has popped back through each of its own subsequent Table Views.</p>
  
  <p>I did try <code>navigationController?.popToRootViewControllerAnimated(true)</code> in my <em>goBack</em> function, but this will immediately take me back to the first Table View Controller, and never iterate back through any of the 2nd (or programatic 3rd, 4th, 5th, etc.) one step at a time.  Thank you in advance!</p>