开发者

UITextView editable and link detection [duplicate]

开发者 https://www.devze.com 2023-03-09 09:12 出处:网络
This question a开发者_运维知识库lready has answers here: Closed 11 years ago. Possible Duplicate:
This question a开发者_运维知识库lready has answers here: Closed 11 years ago.

Possible Duplicate:

iphone UITextView does not support data detectors when the text view is editable

Why is it that when I do:

cell.title.editable = YES;

the link detection is off? Is there a way to have this on with it being editable?


Use the dataDetectorTypes propery of UITextView to enable the auto dection of URL , numbers etc..

MyTextview.dataDetectorTypes = UIDataDetectorTypeLink ;

The possible values which can be assigned to dataDetectorTypes . UIDataDetectorTypePhoneNumber,UIDataDetectorTypeLink more

0

精彩评论

暂无评论...
验证码 换一张
取 消