Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created May 6, 2020 09:27
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 stevencurtis/39ee16bd28ef941072ffee8592acbbe3 to your computer and use it in GitHub Desktop.
Save stevencurtis/39ee16bd28ef941072ffee8592acbbe3 to your computer and use it in GitHub Desktop.
buttonTappedtag
@objc func buttonTapped(_ sender: UIButton) {
let alert = UIAlertController(title: "Tapped Row \(sender.tag)", message: "Thank you for tapping", preferredStyle: .alert)
let action = UIAlertAction(title: "Ok", style: .cancel, handler: nil)
alert.addAction(action)
self.present(alert, animated: true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment