1
votes

performSegue(withIdentifier: "m1", sender: self) The code above is correct here below but it's giving me a SIGBRT (*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'm1'') error claiming the receiver login has no segue with identifier 'm1'' even the login is segued correctly to the UITabBarController with the correct identifier. Forgive me, i'm a beginner developer.

Image

enter image description here

1
Are you sure that your segue is properly connected in Storyboard? Also, the code should be self.performSegue(withIdentifier: "m1", sender: self)Bryan
Yes, the login viewcontroller is segued to the TabBarController.Basti Arcega
Please post the full text of the error message.Bryan
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<No_Limit_Inc_.invLogin: 0x7f84bfd1bdd0>) has no segue with identifier 'm1''Basti Arcega
Which class is the call to perform the segue in?Bryan

1 Answers

0
votes

The call to perform the segue must be in the initial view controller, not the destination view controller. In this case, self.performSegue(withIdentifier:"m1", sender:self) should be in the UIViewController, and NOT the UITabBarController.