Search code examples
iosseguesaslidemenu

SASlideMenu has no segue with identifier null


I am using https://github.com/stefanoa/SASlideMenu to implement a left slide menu in my application. I've followed the tutorial and connected everything as the sample project has. But I keep getting this error:

** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier '(null)''

The error comes form the SASlideMenuLeftMenuSegue

[leftMenu didMoveToParentViewController:rootViewController];
NSString* initiaSegueId = [rootViewController.leftMenu.slideMenuDataSource    initialSegueId];
NSLog(@"initialSegueID->%@",initiaSegueId);
[leftMenu performSegueWithIdentifier:initiaSegueId sender:leftMenu];

Solution

  • I've figured it. It happened that I was editing a Storyboard and the changes weren't saved. This was happening because there were 2 different storyboards because of the localization :/ I didn't realize that. That was why I set the segue with that ID and kept getting that error