12

I'm using an UITextView and want some parts of the text to be transparent.

I'm currently using an NSAttributedString with NSForegroundColorAttribute having the color with the desired transparency.

It works for regular characters but not for emoticons. Is it possible to set the emoticons transparent in a UITextView? If so, how?

Note: I'm looking to support iOS6 or above.

Shikha Sharma
  • 451
  • 1
  • 5
  • 25
ZeCodea
  • 1,071
  • 9
  • 26
  • Did you ever find the answer to this? I'm having the same issue. – user1218464 Nov 25 '15 at 21:12
  • Unfortunately not. What I ended up doing was adding a view over each emoticon with the background color of the textview and alpha value inverted (if I wanted character to have 30%transparency the view would have alpha 0.7) to fake the emoticon transparency – ZeCodea Nov 27 '15 at 11:38
  • Got it. Thanks, i'll see about considering other options like that. – user1218464 Nov 27 '15 at 21:03

0 Answers0