Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I disable the Emoji icon in UITextField?

When I set the text of UITextField as "♈", it will display an emoji icon, but I just want to display the original character.

like image 948
flypig Avatar asked Nov 13 '22 02:11

flypig


1 Answers

You have to add \U0000FE0E after the special character in your NSString. That will tell the OS to use the "plain" version and not to replace it with an emoji. See https://paulofierro.com/blog/2013/3/30/disabling-emoji-characters-with-unicode-variants

like image 150
Johannes Fahrenkrug Avatar answered Dec 05 '22 19:12

Johannes Fahrenkrug