0

I have two storyboards named HomeView~iphone.storyboard and HomeView~ipad.storyboard. Both storyboards have an initialViewController in the storyboard file.

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"HomeView"
                                                     bundle:nil];
UIViewController *controller = [storyboard instantiateInitialViewController];

I get the following error when I try to access the instantiateInitialViewController.

Could not find a storyboard named HomeView in bundle NSBundle - NSInvalidArgumentException

Do you have any Idea? The apple documentation says ~iphone and ~ipad is supported for any file in the bundle.

rptwsthi
  • 10,094
  • 10
  • 68
  • 109
  • Have you tried any of the steps from this [previous SO post](http://stackoverflow.com/questions/11531955/xcode-deployment-error-nsinvalidargumentexception-could-not-find-a-storyboar)? The error messages are similar. – Bryan Luby Feb 12 '13 at 14:55

1 Answers1

2

Have you tried using HomeView.storyboard for iPhone and HomeView~ipad.storyboard for iPad?