Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.