0
私はビューにテキストフィールドを置いて、テキストフィールドを入力するとキーボードが表示されます。キーボードの入力変更ボタンをクリックすると、入力言語を絵文字に変更できます。今私はemoji入力がデフォルトのものとして表示されたキーボードをしたいと思います。私は迅速にイオスでそれを作ることができますか?emoji keyboardをswiftで開く方法
私はビューにテキストフィールドを置いて、テキストフィールドを入力するとキーボードが表示されます。キーボードの入力変更ボタンをクリックすると、入力言語を絵文字に変更できます。今私はemoji入力がデフォルトのものとして表示されたキーボードをしたいと思います。私は迅速にイオスでそれを作ることができますか?emoji keyboardをswiftで開く方法
いいえこれはできません。 - ユーザーは設定で言語を変更できるだけです。
Emojiキーボードは実質的にユーザーが作成しなければならない設定であり、影響を与えることはできません。language
UITextField
ためkeyboardType
プロパティがあります:
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;