I have an ios application using storyboards with a bunch of view controllers.
After adding a new ViewController and setting the identifier (storyboard identifier) 
I am trying to instantiate a new ViewController with the following code:
SurveyNewViewController *newSurvey = [[self storyboard] instantiateViewControllerWithIdentifier:@"newSurveyView"]; [self presentViewController:newSurvey animated:YES completion:nil];
Everything seems to be correct, but when the application starts on the simulator, it crashes:
** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0xa340fa0>) doesn't contain a view controller with identifier 'newSurveyView''
Are there any possible explanations? I used the same approach in different places of the system and it works well.
ios uistoryboard xcode-storyboard
gabrielrios
source share