How do I escape a Unicode character in my Objective-C source code?

前端 未结 5 1719
北恋
北恋 2020-12-06 04:00

I feel incredibly stupid for asking this, but the documentation and Google are giving me no love at all.

I have a Unicode character I want to insert into a string li

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-06 04:28

    Example:

    NSString *stuff = @"The Greek letter Beta looks like this: \u03b2, and the emoji for books looks like this: \U0001F4DA";
    

提交回复
热议问题