1
是否可以设置由UIDataDetectorTypes
生成的链接的颜色?UIDataDetectorTypes自定义链接颜色?
是否可以设置由UIDataDetectorTypes
生成的链接的颜色?UIDataDetectorTypes自定义链接颜色?
不幸的是没有。
您唯一的选择是从UITextView
继承并覆盖DrawRect
,这非常麻烦。
或者,您可以使用样式表的UIWebView
。看到这个答案的细节: Can I change the color of auto detected links on UITextView? 然而这是一个相当沉重的做法。