I want a hyperlink in my iPhone Application, for example like in HTML:
<a href="www.yahoo.com"> Click here </a>
How can i do this in Objective-C?
The most important thing is that I don’t want to show the actual link, I just want to show some text like “click here” and then it loads a link.
I’m currently using the below code. But as i told you I don’t want to show the link instead I want something like “click here”.
textView.text = @"http://stackoverflow.com";
textView.dataDetectorTypes = UIDataDetectorTypeLink;
Try this way:
below is the function to open the link: