首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何快速打开表情符号键盘

如何快速打开表情符号键盘
EN

Stack Overflow用户
提问于 2016-04-28 06:08:25
回答 1查看 9K关注 0票数 1

我将文本字段放在视图中,如果我键入textfield,就会显示一个键盘。我可以点击键盘上的“输入更改”按钮,将输入语言改为表情符号。现在,我想让键盘上显示的表情符号作为默认输入。我怎样才能在ios上做到这一点呢?

EN

回答 1

Stack Overflow用户

发布于 2016-04-28 06:22:42

不,这是不可能的,-用户只能在设置中更改他们的语言。

Emoji键盘实际上是用户必须设置的language设置,我们不能影响它。

有一个keyboardType属性用于UITextField

代码语言:javascript
运行
复制
typedef enum {
    UIKeyboardTypeDefault,                // Default type for the current input method.
    UIKeyboardTypeASCIICapable,           // Displays a keyboard which can enter ASCII characters, non-ASCII keyboards remain active
    UIKeyboardTypeNumbersAndPunctuation,  // Numbers and assorted punctuation.
    UIKeyboardTypeURL,                    // A type optimized for URL entry (shows . / .com prominently).
    UIKeyboardTypeNumberPad,              // A number pad (0-9). Suitable for PIN entry.
    UIKeyboardTypePhonePad,               // A phone pad (1-9, *, 0, #, with letters under the numbers).
    UIKeyboardTypeNamePhonePad,           // A type optimized for entering a person's name or phone number.
    UIKeyboardTypeEmailAddress,           // A type optimized for multiple email address entry (shows space @ . prominently).
    UIKeyboardTypeDecimalPad,             // A number pad including a decimal point
    UIKeyboardTypeTwitter,                // Optimized for entering Twitter messages (shows # and @)
    UIKeyboardTypeWebSearch,              // Optimized for URL and search term entry (shows space and .)

    UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable, // Deprecated

} UIKeyboardType;
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36906547

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档