I followed this : UILabel and NSLinkAttributeName: Link is not clickable and UITextView link is clickable, but when I click it, Safari doesn't open but to no avail.
I have :
uitextView.attributedText = ... some attributed string "http://google.com" ...
"Links detection", "selectable" and "user interaction enabled" are enabled. "editable" is disabled.
I also implemented UITextViewDelegate
- (BOOL)textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)url inRange:(NSRange)characterRange
{
return YES;
}
However, the link appears blue but when I click, nothing happens.