Skip to content

Instantly share code, notes, and snippets.

@MathVasc
Created May 23, 2020 14:56
Show Gist options
  • Save MathVasc/0161f5457fd54d1b07ec0cc27f150869 to your computer and use it in GitHub Desktop.
Save MathVasc/0161f5457fd54d1b07ec0cc27f150869 to your computer and use it in GitHub Desktop.
Add target to UIControll
let button = UIButton()
button.addTarget(self, action: #selector(goToNext), for: .touchUpInside)
@objc private func goToNext() {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment