title: Launch storyboard
body: <p>I am trying to detect at the launch of my app if the device is an iPhone 5 or not. If the device is an iPhone i want to launch my storyboard, else another storyboard. I tried this code in the didFinishLaunchingWithOptions method:</p>
  
  <pre><code>if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone){
      UIStoryboard *storyBoard;
  
      CGSize result = [[UIScreen mainScreen] bounds].size;
      CGFloat scale = [UIScreen mainScreen].scale;
      result = CGSizeMake(result.width * scale, result.height * scale);
  
      if(result.height == 1136){
          storyBoard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone_5" bundle:nil];
          UIViewController *initViewController = [storyBoard instantiateInitialViewController];
          [self.window setRootViewController:initViewController];
      }
  }
  </code></pre>
  
  <p>and it seems working but when the app is launched there is only a black screen. I think there is a problem with the storyboard (each storyboard as 2 view controllers with 2 views). I have one of the 2 views as "Initial view controller" but there is always the baclk screen without the correct view. </p>
  
  <p>Anyone had this problem?</p>