The type of keyboard to display for a given text-based view. Used with the keyboard
property.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
typedef enum UIKeyboardType : NSInteger {
...
} UIKeyboardType;
The type of keyboard to display for a given text-based view. Used with the keyboard
property.
SDKs
Framework
typedef enum UIKeyboardType : NSInteger {
...
} UIKeyboardType;
UIKeyboard Type Default
Specifies the default keyboard for the current input method.
UIKeyboard Type ASCIICapable
Specifies a keyboard that displays standard ASCII characters.
UIKeyboard Type Numbers And Punctuation
Specifies the numbers and punctuation keyboard.
UIKeyboard Type URL
Specifies a keyboard optimized for URL entry. This keyboard type prominently features the period (“.
”) and slash (“/”) characters and the “.com
” string.
UIKeyboard Type Number Pad
Specifies a numeric keypad designed for PIN entry. This keyboard type prominently features the numbers 0
through 9
. This keyboard type does not support auto-capitalization.
UIKeyboard Type Phone Pad
Specifies a keypad designed for entering telephone numbers. This keyboard type prominently features the numbers 0
through 9
and the “*
” and “#
” characters. This keyboard type does not support auto-capitalization.
UIKeyboard Type Name Phone Pad
Specifies a keypad designed for entering a person’s name or phone number. This keyboard type does not support auto-capitalization.
UIKeyboard Type Email Address
Specifies a keyboard optimized for entering email addresses. This keyboard type prominently features the at (“@
”), period (“.
”) and space characters.
UIKeyboard Type Decimal Pad
Specifies a keyboard with numbers and a decimal point.
UIKeyboard Type Twitter
Specifies a keyboard optimized for Twitter text entry, with easy access to the at (“@
”) and hash (“#
”) characters.
UIKeyboard Type Web Search
Specifies a keyboard optimized for web search terms and URL entry. This keyboard type prominently features the space and period (“.
”) characters.
UIKeyboard Type ASCIICapable Number Pad
Specifies a number pad that outputs only ASCII digits.
UIKeyboard Type Alphabet
Specifies a keyboard optimized for alphabetic entry.
keyboard Type
The keyboard style associated with the text object.
keyboard Appearance
The appearance style of the keyboard that is associated with the text object
UIKeyboard Appearance
The appearance of the keyboard used by a text-based view. Used with the keyboard
property.
return Key Type
The visible title of the Return key.
UIReturn Key Type
The text string displayed in the Return key of a keyboard. Used with the return
property.
text Content Type
The semantic meaning expected by a text input area.
UIText Content Type
Constants that identify the semantic meaning expected for a text-entry area.