It does not find tableView, and therefore it is discarded, suggesting that you somehow wanted to refer to this method (which you do not see, obviously).
Please note: your outlet tableView, not tableView. Properties are case sensitive.
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "show Detail" {
if let indexPath = self.tableview.indexPathForSelectedRow {
let taakDetail : Taak = taken[indexPath.row]
let controller = (segue.destination as! UINavigationController).topViewController as! DetailsViewController
controller.selectedTaak = taakDetail
}
}
}
source
share