Suppose I have an AttributedString : \"Already have an account? Sign in!\". I am placing this String in UILabel. Now when a user clicks on \"Sign in!\", current viewControl
You can apply tapGesture to the label.
Create tap gesture recognizer:
let tapGesture = UITapGestureRecognizer(target: self, action: "YOUR_METHOD:")
Add gesture recognizer to label:
YOUR_LABEL.addGestureRecognizer(tapGesture)
Perform your tasks in this method:
func YOUR_METHOD(sender:UITapGestureRecognizer){
// Perform your operations here.
}