iphone - UITextView可编辑和链接检测

标签 iphone objective-c uitextview

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

为什么当我这样做时:

cell.title.editable = YES;

链接检测已关闭?有没有办法让它可以编辑?

最佳答案

使用UITextViewdataDetectorTypes属性启用 URL、数字等的自动检测。

MyTextview.dataDetectorTypes = UIDataDetectorTypeLink ;

可以分配给 dataDetectorTypes 的可能值。 UIDataDetectorTypePhoneNumberUIDataDetectorTypeLink more

关于iphone - UITextView可编辑和链接检测,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6160273/

相关文章:

iphone - 任何人都知道基于Cocoa Touch SQL数据库的应用程序的好教程

iphone - 告诉 iCloud 何时没有更多待处理的核心数据更新更改

ios - 从 Mac 读取 iPhone 日志文件内容

ios - UITableView 中的 UITextView 在模拟器上运行时消失

iphone - cllocation -distanceFromLocation 准确性差

iphone - 在YouTube上上传视频

objective-c - 如何修复内存泄漏?

iphone - 在 UITableView 中显示带有 JSON 内容的 NSArray

iphone - 点击 UITextView 中的单词

ios - 键盘出现后选定的 tableviewCell 未完全显示