title: What's the proper way to manage login state + login view (using storyboards)?
body: <p>It's the first app that I'm creating that will use FB, Twtr and custom login.
  I'll be using a dedicated login view/viewcontroller for this purpose.
  My idea was to check the login state in the app delegate and go from there.</p>
  
  <p><img src="https://i.stack.imgur.com/M0GPt.png" alt="The startup layout"></p>
  
  <p><strong>In case app delegate determines the user is not logged in</strong></p>
  
  <ul>
  <li>Set the login view as the root view controller</li>
  <li>Login will display the rest of the app modally</li>
  <li>If you log out, the modal view of the app is dismissed and you get back at the login screen</li>
  </ul>
  
  <p>So in this case it looks perfect for me, but I can't figure the other case out:</p>
  
  <p><strong>In case app delegate determines the user is logged in</strong></p>
  
  <ul>
  <li>If you set the tabbar controller as the rootViewController there is no login view to dismiss to in case the user logs out..</li>
  <li>I don't want the user to view the login screen if he is already logged in</li>
  </ul>
  
  <p>A solution would be to invisibly set login vc as the root vc but immediately display the tab bar controller modally without the user noticing. I guess that's not possible?</p>