Using shouldPerformSegueWithIdentifier( ) method in Swift
问题 I am trying to use swift's shouldPerformSegueWithIdentifier() method, but it accepts 2 arguments. These are (identifier: String!, sender:AnyObject) My main goal is to execute the code when pressing a login button in my storyboard, and depending of a series of checks return TRUE or FALSE, depending if whether the correct username and password were provided. So here are my questions: What am I supposed to use as the identifier? Apple's documentation it explains that the identifier is a string