I need to make "Terms of Use" in the string below blue and have it respond to an click. I don't want to use a button so how can I do this in a UILabel? String: By tapping Next and continuing you agree to the Terms of Use
Code I tried but failed just got text color change:
var myMutableString = NSMutableAttributedString()
myMutableString = NSMutableAttributedString(string: self.termsLabel.text! as String, attributes: [NSFontAttributeName:UIFont(name: self.termsLabel.font.fontName, size: self.termsLabel.font.pointSize)!])
myMutableString.addAttribute(NSForegroundColorAttributeName, value: UIColor.blue, range: NSRange(location:self.termsLabel.text!.characters.count - 12,length:12))
self.termsLabel.attributedText = myMutableString