Skip to content

Instantly share code, notes, and snippets.

@stevencurtis
Created May 6, 2020 11:00
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/139dcb42af6808ded41004bf43ab2bf2 to your computer and use it in GitHub Desktop.
Save stevencurtis/139dcb42af6808ded41004bf43ab2bf2 to your computer and use it in GitHub Desktop.
CustomTableViewCellClosure
class CustomTableViewCell: UITableViewCell {
var closure: (()->())?
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var alertButton: UIButton!
@IBAction func buttonAction(_ sender: UIButton) {
closure?()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment