Created
August 7, 2019 05:46
-
-
Save leoiphonedev/ec8ea77a41fc5c672039603b1eac6bee to your computer and use it in GitHub Desktop.
Adding UITapGestureRecognizer to UILabel
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
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