Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save leoiphonedev/ec8ea77a41fc5c672039603b1eac6bee to your computer and use it in GitHub Desktop.
Save leoiphonedev/ec8ea77a41fc5c672039603b1eac6bee to your computer and use it in GitHub Desktop.
Adding UITapGestureRecognizer to UILabel
self.lblTermsAndConditions.isUserInteractionEnabled = true
let tapgesture = UITapGestureRecognizer(target: self, action: #selector(tappedOnLabel(_ :)))
tapgesture.numberOfTapsRequired = 1
self.lblTermsAndConditions.addGestureRecognizer(tapgesture)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment