1

I have taken a UITextView. In which i want to show two linkTextAttribute with two different colour. how is it possible?

suppose in my UITextView i have written - "My name is Abhishek Sinha" i want to make Abhishek and Sinha two different link with two different colour.

  • Check this http://stackoverflow.com/questions/27728466/use-multiple-font-colors-in-a-single-label-swift – Lalit kumar May 09 '17 at 11:44
  • Yes, i did change the colour of attributed string but when i make it linkTextAttribute then colour of text changed with same colour.but i want to show link attribute with two different colour.how is it possible? – Abhishek Sinha May 09 '17 at 11:50
  • 1
    Possible duplicate of [UITextView linkTextAttributes font attribute not applied to NSAttributedString](http://stackoverflow.com/questions/35053694/uitextview-linktextattributes-font-attribute-not-applied-to-nsattributedstring) – Ketan Parmar May 09 '17 at 11:56
  • Abhishek Sinha, did you find the answer? I've been searching for the same thing for days now. If you did can you give me a hint? – Marian Petrisor Dec 10 '17 at 16:53
  • Marian Petrisor, i did not find any answer till now. – Abhishek Sinha Dec 11 '17 at 04:55

0 Answers0