IOS segue id is an empty string to prepare for segue

I have an identifier with an identifier.

enter image description here

When I click the button in the shouldPerformSegueWithIdentifier function, I get an empty identifier

enter image description here

What can cause such a problem? What did I create wrong?

Here is my code:

override func shouldPerformSegueWithIdentifier(identifier: String, sender: AnyObject!) -> Bool {

    if identifier == segueIdentifier {
        return false
    }
    else if identifier == registrationSegueidentifier {
        if checkEULA() == true {
            return true
        }
        else {
            showEULAToUser()
            return false
        }
    }

    return true
}
+4
source share
1 answer

Perhaps you could localize your storyboard, so the results are that you now have two storyboards. So, you added the identifier to the base storyboard, and you may have forgotten to add this identifier to another storyboard. Do research in this direction.

+3
source

All Articles