I'm wondering if it is possible to put a hyperlink in a UITextView that will open up safari and take the user to a web page. And if so how can I accomplish this.
Thanks in advance for your help.
yes, you can by setting the dataDetectorTypes property pf the UITextView to 'UIDataDetectorTypeLink '.
Unfortunately not at the moment since there are no attributes you can attach to the text.
You have a couple of options
1) Use a UIWebView instead.
2) If the text is in a known position then you could overlay a button on the coordinates. This is how Twitterific on the iPhone does links,
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With