Skip to content

Instantly share code, notes, and snippets.

@imnaveensharma
Last active July 25, 2020 04:51
Show Gist options
  • Save imnaveensharma/5dbce3467e3fbfb29ce1a95e2783c6a5 to your computer and use it in GitHub Desktop.
Save imnaveensharma/5dbce3467e3fbfb29ce1a95e2783c6a5 to your computer and use it in GitHub Desktop.
Add target through selector
self.btn.addTarget(self, action: #selector(tapBtn(sender:)), for: .touchUpInside)
// MARK: - Selectors Actions ::
@IBAction func tapBtn(sender: UIButton) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment