0

How to change the color of a specific UITextView link generated by the UIDataDetector ?

Larme
  • 24,190
  • 6
  • 51
  • 81
Patrick L.
  • 526
  • 6
  • 24

1 Answers1

1

On iOS 7 you can set the tintColor of the UITextView. It affects the link color as well as the cursor line and the selected text color.

iOS 7 also added a new property to UITextView called linkTextAttributes which would appear to let you fully control the link style.

Thanks to @stonemonk in Can I change the color of auto detected links on UITextView?

Community
  • 1
  • 1
Pancho
  • 4,099
  • 1
  • 21
  • 32