PDA

View Full Version : Hyperlinks in a UITextView?




HippoMan
Jul 24, 2008, 02:10 PM
I'm trying to implement hyperlinked text in a UITextView object in an iPhone app. Given the methods available in this class, this doesn't seem to be possible, but I'm wondering if there are tricks that can be performed in order to provide this capability.

I know about the UIWebView class, but I don't want to use it, because all it seems to offer is a browser-like view of a web page, which is too restrictive for my purposes.

I'm looking for a way to display text in a scrolling window with auto-wrap, and with the ability for me to treat a small number of words or phrases as clickable links. Once the user selects these, I'd like Safari to open up at the associated web address.

If this can't be done via UITextView, is there perhaps another way to provide something that functions more or less in this manner, perhaps using other UI objects?

Any hints, pointers to docs, or any other help would be greatly appreciated.

Thanks in advance.
.