Showing emoji in a UILabel?

前端 未结 5 1411
花落未央
花落未央 2020-12-13 04:50

Not sure what I\'m missing here, and searching hasn\'t helped me. I want to display emoji characters in a UILabel, and this isn\'t doing it:

UILabel *label =         


        
5条回答
  •  醉酒成梦
    2020-12-13 05:50

    The unicode 6.1 encodings work as well, but you would have to specify them like this:

    label.text = @"\U0001F431";
    

提交回复
热议问题