data detector types in UITextView

Discussion in 'iOS Programming' started by Muthu.chidambar, Jun 29, 2009.

  1. Muthu.chidambar macrumors newbie

    Joined:
    May 20, 2009
    #1
    dataDetectorTypes
    The types of data converted to clickable URLs in the text view.

    @property(nonatomic) UIDataDetectorTypes dataDetectorTypes

    Discussion

    You can use this property to specify the types of data (phone numbers, http links, and so on) that should be automatically converted to clickable URLs in the text view. When clicked, the text view opens the application responsible for handling the URL type and passes it the URL.

    This is in the apples documentation.
    Can I open the URL in a webview instead of the default application (safari).
     
  2. gujamin macrumors member

    Joined:
    Aug 6, 2002
    Location:
    Atlanta
    #2
    I am having the same issue. Has anyone found a solution?!
     
  3. entaum macrumors newbie

    Joined:
    Mar 4, 2010
    #3
    Do it like this.
    Just remember to set editable fuction to NO, or data detector won't work.

     
  4. gujamin macrumors member

    Joined:
    Aug 6, 2002
    Location:
    Atlanta
    #4
    That doesn't answer the question
     

Share This Page