I\'m trying to get index of selected item in TableView and start some activity after that. Unfortunately most of solutions that I found are in obje
index
TableView
This worked good for me:
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { print("section: \(indexPath.section)") print("row: \(indexPath.row)") }
The output should be:
section: 0 row: 0