title: How do I access sub view controllers from Tab Bar Controller
body: <p>This seems like such a dumb question but I can't quite figure it out: </p>
  
  <p>My storyboard looks like: <code>TabBarController</code> -> <code>Navigation Controller</code> -> <code>Table View Controller 1</code> -> <code>Table View Controller 2</code>.</p>
  
  <p>This code is located in the <code>Tab Bar Controller</code> and I am trying to access <code>Table View Controller 2</code></p>
  
  <p>So the way that I understand it, this gets me the <code>Navigation Controller</code> </p>
  
  <pre><code>let tempNavVC = self.viewControllers?[0] as! UINavigationController 
  </code></pre>
  
  <p>And this should get me the <code>Table View Controller 2</code> as I think it is index 1 of <code>tempNavVC</code>'s <code>viewControllers</code> array.</p>
  
  <pre><code>let secondVC = tempNavVC.viewControllers[1] as! TableViewController2
  </code></pre>
  
  <p>However, it is clearly not because I am getting: </p>
  
  <blockquote>
    <p>'NSRangeException', reason: '*** -[__NSSingleObjectArrayI
    objectAtIndex:]: index 1 beyond bounds [0 .. 0]'</p>
  </blockquote>
  
  <p>Any help would be greatly appreciated.</p>