我将文本字段放在视图中,如果我键入textfield,就会显示一个键盘。我可以点击键盘上的“输入更改”按钮,将输入语言改为表情符号。现在,我想让键盘上显示的表情符号作为默认输入。我怎样才能在ios上做到这一点呢?
发布于 2016-04-28 06:22:42
不,这是不可能的,-用户只能在设置中更改他们的语言。
Emoji键盘实际上是用户必须设置的language
设置,我们不能影响它。
有一个keyboardType
属性用于UITextField
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;
https://stackoverflow.com/questions/36906547
复制相似问题