Have some question that I can't figure out. I have single static cell in xib file and I want to make segue from detail disclosure accessory of that cell to other view controller.
Guess that I have to use this method:
func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {
self.performSegue(withIdentifier: "SegueID", sender: self) // #ERROR
}
But I have an error:
Could not cast value of type 'Lists.ListViewController' (0x104c0e7b8) to 'UITableViewCell' (0x106875bf8).
How can I create this segue correctly?