1

I have a segue with identifier.

enter image description here

When I press the button in function shouldPerformSegueWithIdentifier I get an empty identifier

enter image description here

What can cause such problem? What did I set up 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
}
korgx9
  • 1,234
  • 22
  • 30

1 Answers1

0

Maybe you could had localized your storyboard,so the results is that now you have two storyboards.So you added identifier to the base storyboard and maybe you forgot to add this identifier to the another storyboard. Do research in this direction.

oshurmamadov
  • 264
  • 8
  • 14
  • 1
    This was the case. I already found my mistake, but forgot to post here. I'll accept this as an right answer – korgx9 Mar 18 '16 at 03:11