title: get active storyboard
body: <p>I'm using the code bellow to check if the user is logged in or logged out, and it's working fine. But because I'm getting the storyboard by name, I'm always sending the user to the iPhone "in" or "out" view controller. It's gonna work if I get the active storyboard. How can I fix the code?</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
  {
      BOOL user = ...;
      NSString *segue = user ? @"in" : @"out";
      UIStoryboard *storyBoard = [UIStoryboard storyboardWithName:@"iPhone" bundle:nil];
      UIViewController *viewController = [storyBoard instantiateViewControllerWithIdentifier:segue];
      [self.window setRootViewController:viewController];
  
      return YES;
  }
  </code></pre>