如何更改UITextField中的链接颜色?

时间:2022-11-21 15:14:06

Anyone know how to change the link color or the phone number color in a UITextField? It's nice that the detection option automatically changes the color of these things to blue and underlines them. But come on, fluorescent blue? Really? OK, it looks fine on a white background, I guess.

任何人都知道如何更改UITextField中的链接颜色或电话号码颜色?很好的是,检测选项会自动将这些东西的颜色更改为蓝色并加下划线。但来吧,荧光蓝?真?好吧,我猜它在白色背景上看起来很好。

Wishful thinking ...

一厢情愿......

textField.linkColor = [UIColor notThatAwfulBlue];

textField.linkColor = [UIColor notThatAwfulBlue];

1 个解决方案

#1


0  

Can I change the color of auto detected links on UITextView?

我可以在UITextView上更改自动检测到的链接的颜色吗?

For a UITextView, but I guess the solution is still relevant.

对于UITextView,但我想解决方案仍然相关。

#1


0  

Can I change the color of auto detected links on UITextView?

我可以在UITextView上更改自动检测到的链接的颜色吗?

For a UITextView, but I guess the solution is still relevant.

对于UITextView,但我想解决方案仍然相关。