title: How to programmatically set which screen load first by story board
body: <p>I am working on a app which have login screen. It records whether user logged in or not, in user defaults. I wanted to direct user to the login page if he has not logged in otherwise navigate to the apps main screen. How to do this programmatically using story board.</p>
  
  <pre><code>if(![[NSUserDefaults standardUserDefaults] boolForKey:@"loggedin"]) {
  
      //If logged in
  
  } else {
  
     //if logged out
  
  }
  </code></pre>