UITableViewDelegate
extension ViewController: UITableViewDelegate { | |
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { | |
if tableView == firstTable { | |
// you clicked the first table | |
firstTable.deselectRow(at: indexPath, animated: true) | |
} else { | |
// you clicked the second table | |
secondTable.deselectRow(at: indexPath, animated: true) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment