Skip to content

Instantly share code, notes, and snippets.

@TungVuDuc2805
Created June 10, 2020 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TungVuDuc2805/4c530138fad748f287ad5bbdceaf44ce to your computer and use it in GitHub Desktop.
Save TungVuDuc2805/4c530138fad748f287ad5bbdceaf44ce to your computer and use it in GitHub Desktop.
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
if indexPath.row == 0 {
// event when tap on cell at indexPath = 0
} else if indexPath.row == 1 {
// event when tap on cell at indexPath = 0
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment