Created
May 6, 2020 11:00
-
-
Save stevencurtis/139dcb42af6808ded41004bf43ab2bf2 to your computer and use it in GitHub Desktop.
CustomTableViewCellClosure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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