Getting a normal looking unicode down arrow in a UILabel like this ⬇

后端 未结 2 1330
傲寒
傲寒 2020-11-30 09:20

I would like to get a down arrow to display inside a UILabel. Specifically ⬇ Unicode: U+2B07. This is show sort order on a column header.

I have seen the code to ge

2条回答
  •  星月不相逢
    2020-11-30 10:07

    If you're seeing the blue arrow with gloss, you have the right character, but it's showing one of the emoji-style characters. Try changing the font of your UILabel to something like Arial Unicode MS.

    Edit After a little testing, it looks like changing the font doesn't actually work. It keeps displaying the glossy arrow. It's probably better to go with the suggestion of the other answer and use a different glyph, like \u2193, which does work:

    [nameLabel setText:@"\u2193"];
    

    enter image description here

提交回复
热议问题