I want to perform segue from View B to View C and I am calling method in class A. My segue method in Class B is-
//ViewController B
func nextViewAction() -> Void {
self.performSegueWithIdentifier("nextview", sender: self)
}
And I am calling it in Class A like this-
//ViewController A
@IBAction func sideMenuAction(sender: AnyObject) {
ViewClassB().nextViewAction()
}
But it crashing- Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver () has no segue with identifier 'nextview''