Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Muthu.chidambar

macrumors newbie
Original poster
May 20, 2009
14
0
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).
 
Do it like this.
Just remember to set editable fuction to NO, or data detector won't work.

TextView.editable = NO;
TextView.dataDetectorTypes = UIDataDetectorTypeAll;
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.