How can I make a clickable link in an NSAttributedString?
Use NSMutableAttributedString. NSMutableAttributedString * str = [[NSMutableAttributedString alloc] initWithString:@”Google”]; [str addAttribute: NSLinkAttributeName value: @”http://www.google.com” range: NSMakeRange(0, str.length)]; yourTextView.attributedText = str; Edit: This is not directly about the question but just to clarify, UITextField and UILabel does not support opening URLs. If you want to use UILabel with links you can check TTTAttributedLabel. Also you should … Read more