I have a project that uses nib files, no storyboards. Depending on the app settings I need to display a different screen than what is being displayed now when the app is launched. I created this view as a storyboard in Interface Builder. In the main view controller's viewWilllAppear methodwhen certain conditions are true, I am trying to load the new storyboard and view controller:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"IncompleteSettings.storyboard" bundle: [NSBundle bundleWithIdentifier:@"Convention"]];
IncompleteSetingsViewController *vc = [storyboard instantiateInitialViewController];
I have tried passing nil and [NSBundle mainBundle] to the bundle argument.
I get this error:
08-09 11:38:39.188 Convention[17091:11603] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'IncompleteSettings.storyboard' in bundle NSBundle (loaded)'
Project Details: