Skip to main content
edited tags
Link
rmaddy
  • 319.5k
  • 44
  • 548
  • 591
Source Link
marc
  • 537
  • 6
  • 23

StoryBoard can not find ViewController

I'm developing a small app just to learn iOS, and I'm stucked in a situation with the StoryBoard and a ViewController which apparently exists, but when I run the app the compiler throws me a NSInvalidArgumentException.

The error is the following one:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Storyboard (<UIStoryboard: 0xc6ced30>) doesn't contain a view controller with identifier 'recivedPushViewController''

As you can see in the following picture, the StoryboardID has been set up

Identity Inspector

The code which calls the ViewController is the following:

 UIViewController* vc = [self.storyboard instantiateViewControllerWithIdentifier:@"recivedPushViewController"]; vc.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentViewController:vc animated:TRUE completion:NULL]; 

Can anyone help me??

Thank you so much