OGeek|极客世界-中国程序员成长平台

标题: ios - 我的自定义键盘中的 Apple 表情符号键盘 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 12:26
标题: ios - 我的自定义键盘中的 Apple 表情符号键盘

如何从我的自定义键盘调用 Apple 的 Emoji 键盘?

Apple's emoji keyboard button example



Best Answer-推荐答案


很遗憾,你不能。您唯一能做的(并且必须做才能获得 Apple 的批准)就是调用 advanceToNextInputMode。 .

To ask the system to switch to another keyboard, call the advanceToNextInputMode method of the UIInputViewController class. The system picks the appropriate “next” keyboard; there is no API to obtain a list of enabled keyboards or for picking a particular keyboard to switch to.

来自 Providing a Way to Switch to Another Keyboard 部分.

但是,您可以创建一个按钮,将键盘的布局/键更改为表情符号样式

关于ios - 我的自定义键盘中的 Apple 表情符号键盘,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34182069/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4