My Swift segue is not working at all and isn\'t throwing any errors. The breakpoint shows me that the app lands on this line but nothing happens:
self.perfor
Ok. I just tried it out. Hope you did all the things regarding StoryBoard Reference. Me too had the same issue with performSegueWithIdentifier.
Example: Let take two storyboard main and signup.
1) In main.storyboard
create a storyboard reference. Set the storyboardId
in the Storyboard Reference as signup
and the referencedId
as the storyboardId
of the scene(viewController) which is in signup.storyboard
. Look at this link for a clear picture Storyboard to Storyboard
2) Set the segue identifier between viewController
and Storyboard Reference
in main.storyboard
3) Since I faced the same problem with performSegueWithIdentifier
, I replaced it with shouldPerformSegueWithIdentifier
.
override func shouldPerformSegueWithIdentifier(identifier: String, sender: AnyObject?) -> Bool {
if(identifier == "segue_identifier"){
// segue_identifier is the viewController and storyBoard Reference segue identifier.
print("hello")
}
return true;
}
Let me know if you find any issues. It did work for me.