views:

597

answers:

3

I have a UITextview that has a phone number in it. I see when it detects it it turns it the standard link blue and underlines it. I just want to know how I can control that link state programmatically.

A: 

If you want to keep the UITextView from converting the phone numbers to links, you can do this:

[textView setDataDetectorTypes:UIDataDetectorTypeNone];
Can Berk Güder
A: 

I'm sort of looking for the same answer but instead of the link being blue, how do I keep it activated and control the color of that link?

kbosu31
A: 

That wasn't the question that was asked. The question was how to change the color of the phone number. I'm having the same problem. The phone number is blue on a black background and I want to change the color of the phone number to yellow. How is this done?

Miriam Raphael Roberts