Skip to content

Instantly share code, notes, and snippets.

@akio0911
Created July 11, 2020 03:02
Show Gist options
  • Save akio0911/01470c1992c2c61bce115d8690e27927 to your computer and use it in GitHub Desktop.
Save akio0911/01470c1992c2c61bce115d8690e27927 to your computer and use it in GitHub Desktop.
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if let indexPath = tableView.indexPathForSelectedRow {
tableView.deselectRow(at: indexPath, animated: true)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment