Editing UITextView and defining links

Possible duplicate:
iphone UITextView does not support data detectors when editing a text view

Why does this happen when I do:

cell.title.editable = YES;

link detection disabled? Is there any way to do this with editing it?

+3
source share
1 answer

Use the dataDetectorTypes UITextView property to enable automatic detection of URLs, numbers, etc.

MyTextview.dataDetectorTypes = UIDataDetectorTypeLink ;

Possible values ​​that can be assigned to dataDetectorTypes. UIDataDetectorTypePhoneNumber, UIDataDetectorTypeLink more

-1
source

All Articles