title: How to call different Storyboards in iOS?
body: <p>I am using two storyboard first one for iphone <code>Main.storyboard</code> and second one is <code>Main_iPad.storyboard</code> and i wants to call separately for iPad and iPhone i am using this code:</p>
  
  <pre><code>if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)  {
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main_iPad" bundle:nil];
      EABaseRootVC *loginController = [storyboard instantiateViewControllerWithIdentifier:@"root2"];
      UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:loginController];
      self.window.rootViewController=navController;
  }
  else
  {
  
      UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
      EABaseRootVC *loginController = [storyboard instantiateViewControllerWithIdentifier:@"root"];
      UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:loginController];
      self.window.rootViewController=navController;
  }
  </code></pre>
  
  <p>But its always shows iPhone assets for Main.storyboard.</p>
  
  <p>i am already follow this <a href="https://stackoverflow.com/questions/27813647/different-storyboards-for-iphone-and-ipad-in-xcode-6">Different storyboards for iPhone and iPad in xcode 6</a></p>
  
  <p>if you have any other idea so please suggest me.
  what i am doing wrong?</p>