How to use flat emojicons with iOS

2019-06-25 06:07发布

问题:

I am trying to add an emoji / unicode character to the UITableViewRowAction title, so that I won't need to use third party libraries to add images.

Following the discussion I had HERE, I managed to add the emoji, but it's what Apple uses throughout the iOS, as you can see below:

What I wanted to make is to have the same emoji, but having it in a different style. Maybe something like the image below that I got from HERE:

I have tried to use the xcode, and gone through the Unicode.org list HERE, but iOS only shows the stock emojis.

Is there a way of displaying the other styles of emoji / unicode characters?

回答1:

I'm not entirely sure why some fonts use the coloured glyphs and some use the flat version but if you try some different fonts you will find some are flat!

For example, try Arial.

[UIFont fontWithName:@"Arial" size:14]