segue, Thread 1: signal SIGABRT

Hellp, when i`am start this code:

@IBAction func buttonClick(_ sender: UIButton) {
        buttonTitle = sender.currentTitle!
        performSegue(withIdentifier: "ship", sender: sender)
    }

i have a class AppDelegate: UIResponder, UIApplicationDelegate { Thread 1: signal SIGABRT

please help

Replies

Put a breakpoint on the assignment and check what sender.currentTitle is.


Any time you type ! in Swift it's an invitation to crash.

sender.currentTitle is correct, crash is on performSegue(withIdentifier: "ship", sender: sender)