19
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[iOS] 絵文字を表示する

Last updated at Posted at 2014-10-23

#UILabel などに表示する場合
##方法1

  1. 絵文字をiOS Emoji から探す
  2. Unicode のリンクをクリック
  3. 下のJava Data にある「□」を、コードにコピー&ペ―スト

##方法2

  1. 絵文字をAdding Graphics and Emoji characters to Apple push notifications から探して、「¥uaaaa」を「0xaaaa」にして、NSString で表示
Example
NSLog(@"%@", [NSString stringWithFormat:@"%C", 0xe022]);
  1. コンソールに出力された「■」のような文字を、コードにコピー&ペ―スト

#HTML として表示する場合
iOS Emoji の各Unicode の前に「&#x」、後ろに「;」を付ける

例: 松 📝

#実行例
IMG_2868.PNG

#参考
##UILabel など
*Showing emoji in a UILabel?
*Adding Graphics and Emoji characters to Apple push notifications
##HTML
*iOS Emoji

19
20
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?