gpt4 book ai didi

ios - 我怎么做?在代码中插入图像?

转载 作者:可可西里 更新时间:2023-11-01 06:20:52 26 4
gpt4 key购买 nike

(请在回答之前先检查链接,这样您才能明白我想说的话)我有check a code在 github 的 Xcode 中,我在这个 class 中找到了类似这样的代码它甚至工作得很好

[[NSArray arrayWithObjects:
@"😄", @"😊", @"😃", @"😉", @"😍", @"😘", @"😚", @"😳", @"😌", @"😁", @"😜", @"😝", @"😒", @"😏", @"😓", @"😔", @"😞", @"😖", @"😥", @"😰", @"😨", @"😣", @"😢", @"😭", @"😂", @"😲", @"😱", @"😠", @"😡", @"😪", @"😷", @"👿", @"👽", @"💛", @"💙", @"💜", @"💗", @"💚", @"💔", @"💓", @"💘✨", @"🌟", @"💤", @"🎵", @"🔥", @"💩", @"👍", @"👎", @"👌", @"💝", @"🎎", @"🎒", @"🎓", @"🎏", @"🎆", @"🎃", @"🎄", @"🎁", @"🔔", @"💿", @"📷", @"💻", @"💡", nil]retain];

编辑:-如何在数组中直接添加图像或如何在 Xcode 编辑器中启用表情符号键盘?

最佳答案

这是 Unicode 字符。记录那个 NSArray。

\Ud83d\Ude04 - 张开嘴巴和微笑的眼睛的笑脸

enter image description here

   "\Ud83d\Ude04",
"\Ud83d\Ude0a",
"\Ud83d\Ude03",
"\Ud83d\Ude09",
"\Ud83d\Ude0d",
"\Ud83d\Ude18",
"\Ud83d\Ude1a",
"\Ud83d\Ude33",
"\Ud83d\Ude0c",
"\Ud83d\Ude01",
"\Ud83d\Ude1c",
"\Ud83d\Ude1d",
"\Ud83d\Ude12",
"\Ud83d\Ude0f",
"\Ud83d\Ude13",
"\Ud83d\Ude14",
"\Ud83d\Ude1e",
"\Ud83d\Ude16",
"\Ud83d\Ude25",
"\Ud83d\Ude30",
"\Ud83d\Ude28",
"\Ud83d\Ude23",
"\Ud83d\Ude22",
"\Ud83d\Ude2d",
"\Ud83d\Ude02",
"\Ud83d\Ude32",
"\Ud83d\Ude31",
"\Ud83d\Ude20",
"\Ud83d\Ude21",
"\Ud83d\Ude2a",
"\Ud83d\Ude37",
"\Ud83d\Udc7f",
"\Ud83d\Udc7d",
"\Ud83d\Udc9b",
"\Ud83d\Udc99",
"\Ud83d\Udc9c",
"\Ud83d\Udc97",
"\Ud83d\Udc9a",
"\Ud83d\Udc94",
"\Ud83d\Udc93",
"\Ud83d\Udc98\U2728",
"\Ud83c\Udf1f",
"\Ud83d\Udca4",
"\Ud83c\Udfb5",
"\Ud83d\Udd25",
"\Ud83d\Udca9",
"\Ud83d\Udc4d",
"\Ud83d\Udc4e",
"\Ud83d\Udc4c",
"\Ud83d\Udc9d",
"\Ud83c\Udf8e",
"\Ud83c\Udf92",
"\Ud83c\Udf93",
"\Ud83c\Udf8f",
"\Ud83c\Udf86",
"\Ud83c\Udf83",
"\Ud83c\Udf84",
"\Ud83c\Udf81",
"\Ud83d\Udd14",
"\Ud83d\Udcbf",
"\Ud83d\Udcf7",
"\Ud83d\Udcbb",
"\Ud83d\Udca1"

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

you can click Edit->Special Characters... - there you can find all unicode characters (including the emoji)

关于ios - 我怎么做?在代码中插入图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17781457/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com