IOS Apprentice, CH17 ALLListViewController, getting error "Thread 1: SIGABRT"

IOS Apprentice, Ch17 error, AllListsViewController, “Thread1: signal SIGABRT”, not sure what this means can someone explain.

here is the code:
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == “ShowChecklist” {
let controller = segue.destination as! ChecklistViewController
controller.checklist = sender as! Checklist
} else if segue.identifier == “AddChecklist” {
let controller = segue.destination as! ListDetailViewController
controller.delegate = self

Similar crashes are discussed in the book and the reasons are given. You might not have set up a connection properly or might not be sending the segue request from the control that you think you are sending the request from. It’s hard to tell based on just a code snippet.

If you are unable to figure out what is going on, please ZIP up your whole project, upload it somewhere and then provide a link here. Then somebody can take a look and help you.

This topic was automatically closed after 166 days. New replies are no longer allowed.