在iOS 9.0中以编程方式显示Emoji键盘 [英] Show Emoji keyboard programatically in iOS 9.0
本文介绍了在iOS 9.0中以编程方式显示Emoji键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个文本字段,我需要用户选择表情符号才能继续.默认情况下,如何触发表情符号键盘?
I have a textfield where i need the user to select an emoji to proceed. How do i trigger the emoji keyboard by default?
我知道有一种获取所有键盘的方法,但是我不确定默认情况下如何选择一个.
I know there is a way to get all keyboards but i am not sure how to select one by default.
NSArray *array = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleKeyboards"];
NSLog(@"Keyboards: %@", array);
The output of all the installed international keyboards looks as follows:
Keyboards: (
"en_US@hw=US;sw=QWERTY",
"zh_Hant-HWR@sw=HWR",
"emoji@sw=Emoji"
)
我仅支持iOS 9.0,因此可以假设用户使用表情符号键盘.
I am supporting only iOS 9.0, so i am ok with assuming the user has an emoji keyboard.
推荐答案
看来您无法做到这一点,iOS没有提供任何公共api以编程方式切换到另一种输入法,并且emoji键盘被视为一种输入方法.
it seems that you cannot do this, iOS does not provide any public api to programatically switch to another input method, and emoji keyboard is regarded as a kind of input method.
这篇关于在iOS 9.0中以编程方式显示Emoji键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文