Hi I have a storyboard and am able to show a detail view when clicking on a table cell. I want to add extra functionality so that depending on what cell I click I show a dif
In swift 3.1, with a segment control of two states
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { var segue: String! if selectedSegment == 0 { segue = "segue1" } else { segue = "segue2" } self.performSegue(withIdentifier: segue, sender: self)
}