title: How to change initial tab bar selection programmatically
body: <p>Having problems changing the initial tab bar selection on an application (i.e. the middle tab is selected on app launch rather than the leftmost tab). The app uses storyboards and the tab bar controller was added later on in development via the storyboard method.</p>
  
  <pre><code>tabBarController.selectedIndex = 1;
  </code></pre>
  
  <p>the above code doesn't work (because I don't have a custom view controller connected to my tab bar, just the default UITabBarController):</p>
  
  <p>Done some googling and looked at many different resources and haven't quite found a solution for an app that wasn't initially created using Apple's template Tab Bar Application.</p>