How to enter unicode characters in a UILabel in Interface Builder?

前端 未结 5 1648
南旧
南旧 2020-12-13 23:32

I would like to display a unicode character (the speaker symbol U+1F50A) in label. Is it possible to enter this symbol in Interface Builder?

5条回答
  •  無奈伤痛
    2020-12-13 23:35

    Yes, you can click "Edit" > "Special Characters…" — there you can find all unicode characters (including the emoji) and copy/paste them where you set the label text in Interface Builder.

    EDIT: In Xcode 6 it's "Edit" > "Emoji & Characters"

    Xcode 7+: "Edit" > "Emoji & Symbols"

提交回复
热议问题