title: Selecting different storyboards based on device type
body: <p>I have a universal app in which I'm loading my main storyboard manually in <code>application:didFinishLaunchingWithOptions</code>.</p>
  
  <p>I have 2 storyboards for iPhone and iPad which have the <code>~iPhone</code> and <code>~iPad</code> suffixes. I'm loading my storyboard using:</p>
  
  <pre><code>UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
  self.initialViewController = [storyboard instantiateInitialViewController];
  </code></pre>
  
  <p>This prints <code>Unknown class ViewController in Interface Builder file.</code> to the console, so apparently it's not loading the correct storyboard. However, when I use <code>[UIStoryboard storyboardWithName:@"MainStoryboard~iPhone" bundle:nil];</code> it works fine, but of course will work only for iPhone.</p>
  
  <p>What am I missing? How can I use the name suffixes to automatically select the correct storyboard?</p>