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
HomeViewin bundleNSBundle - NSInvalidArgumentException
Do you have any Idea? The apple documentation says ~iphone and ~ipad is supported for any file in the bundle.