0

I am receiving the string @"\\U0001F603" from an API, which is the Unicode code point for the emoji .

I want to display it using an UILabel's text property. If I directly set it, it shows \U0001F603 instead of the actual emoji.

How can I display the emoji at the received Unicode code point?

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113

2 Answers2

-1

You have to remove first slash. like this

label.text=@"\U0001F603";

.

-1

This usually helps me

[NSString stringWithUTF8String:model.UTF8String];
oks_ios
  • 187
  • 2
  • 8