iPhone Emoji Decimal Value Representation

2019-08-01 05:17发布

问题:

I want to display an Emoji icon using it's decimal value, for example &#xe41e

How can I display it in an UILabel ?

Thanks!

回答1:

Try this

textLabel.text = @"\ue41e";

Instead of &#x, use \u. I hope this is the one you want.