如何制作表情符号应用程序?(iOS)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11283481/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 19:04:51  来源:igfitidea点击:

How to make an Emoji App? (iOS)

iphoneioskeyboardemoji

提问by Plies Neyo

Possible Duplicate:
Making An Emoji Enabeling App

可能的重复:
制作表情符号应用程序

I'm wanting to be educated on how to create an emoji type app with the code. But i can't seem to find a tutorial for it. So I thought I would ask on here if anyone will help me. I've got Xcode and a $99 license too for testing it out on my device.

我想了解如何使用代码创建表情符号类型的应用程序。但我似乎找不到它的教程。所以我想我会在这里问是否有人会帮助我。我也有 Xcode 和 99 美元的许可证,用于在我的设备上进行测试。

Thanks

谢谢

回答by CodaFi

Emoji chars are simply Unicode chars, just with more limited support as you progress backwards through iOS history. To enter emoji using the keyboard, iOS 5 and 6 provide the system standard Emoji keyboard (settings>general>international>keyboards>emoji). In code, any standard text rendering object will show most escaped chars you pass to them:

表情符号字符只是 Unicode 字符,只是随着您在 iOS 历史记录中倒退而获得更多有限的支持。为了使用键盘输入表情符号,iOS 5 和 6 提供了系统标准的表情符号键盘(设置>通用>国际>键盘>表情符号)。在代码中,任何标准文本渲染对象都会显示您传递给它们的大多数转义字符:

UITextView *example = [[UITextView alloc]initWithFrame:CGRectMake(0,0,320,460)];
[example setText:@"\U0001F604"];
[self.view addSubview: example];

Simple as that.

就那么简单。

Note that prior to iOS 5, text rendered and sent as Emojis utilizes the iOS private Unicode space, which means anybody not on an iOS device will get a whole lot of ? And [] instead of characters. See herefor the hack that enables the emoji keyboard in most of those emoji apps on the store.

请注意,在 iOS 5 之前,作为 Emojis 呈现和发送的文本使用 iOS 私有 Unicode 空间,这意味着任何不在 iOS 设备上的人都将获得大量 ? 和 [] 代替字符。请参阅此处了解在商店中的大多数表情符号应用程序中启用表情符号键盘的技巧。