title: How to load a specific scene when application starts based on NSUserDefaults in storyboard
body: <p>I am new to storyboards. I have made up an application that has a login screen. Once the user logs in, his username and password are saved in <code>NSUserDefaults</code>. This is because when the user has to login only once after installing the application. Whenever the user opens the application again, the login page should not appear. I dont know how to achieve this in storyboards. An someone please guide me how to do this?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I have written the following code in <code>didFinishLaunchingWithOptions</code></p>
  
  <pre><code>NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
  if ([defaults objectForKey:@"username"] &amp;&amp; [defaults objectForKey:@"password"] &amp;&amp; [defaults objectForKey:@"url"]) {
      self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:@"navigationview"];
  }
  else {
      self.window.rootViewController = [self.window.rootViewController.storyboard instantiateViewControllerWithIdentifier:@"login"];
  }
  return YES;
  </code></pre>