【发布时间】:2016-08-01 05:13:54
【问题描述】:
我有一个文本字段,我需要用户在其中选择一个表情符号才能继续。我如何默认触发表情符号键盘?
我知道有一种方法可以获取所有键盘,但我不确定如何默认选择一个。
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,所以我可以假设用户有表情符号键盘。
【问题讨论】:
-
这在 iOS 13 中是否可行,或者这个答案是否有机会stackoverflow.com/questions/58168017/…