Hyperlink in UITextView

Discussion in 'iOS Programming' started by titaniumdecoy, Oct 22, 2008.

  1. titaniumdecoy macrumors member

    Joined:
    Oct 13, 2005
    #1
    Is it possible to place "links" in a UITextView? I want certain lines to be underlined, and when clicked, allow the application to respond appropriately (not by launching Safari). Thanks.
     
  2. tsornin macrumors newbie

    Joined:
    Jul 23, 2002
    #2
    No, not in a textview. But you can change it to a UIWebView, and set up a custom url scheme for your app so that tapping on a link tells your app to do something...

    The iPhone OS Programming guide used to talk about how to do this, although it looks like they've changed around some of the docco in the dev area.
     
  3. titaniumdecoy thread starter macrumors member

    Joined:
    Oct 13, 2005
    #3
    in that case, is there a way to tell which word was clicked on?
     
  4. tsornin macrumors newbie

    Joined:
    Jul 23, 2002
    #4

Share This Page