Enumeration

UIKeyboardType

The type of keyboard to display for a given text-based view. Used with the keyboardType property.

Topics

Constants

case `default`

Specifies the default keyboard for the current input method.

case asciiCapable

Specifies a keyboard that displays standard ASCII characters.

case numbersAndPunctuation

Specifies the numbers and punctuation keyboard.

case URL

Specifies a keyboard optimized for URL entry. This keyboard type prominently features the period (“.”) and slash (“/”) characters and the “.com” string.

case numberPad

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.

case phonePad

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.

case namePhonePad

Specifies a keypad designed for entering a person’s name or phone number. This keyboard type does not support auto-capitalization.

case emailAddress

Specifies a keyboard optimized for entering email addresses. This keyboard type prominently features the at (“@”), period (“.”) and space characters.

case decimalPad

Specifies a keyboard with numbers and a decimal point.

case twitter

Specifies a keyboard optimized for Twitter text entry, with easy access to the at (“@”) and hash (“#”) characters.

case webSearch

Specifies a keyboard optimized for web search terms and URL entry. This keyboard type prominently features the space and period (“.”) characters.

case asciiCapableNumberPad

Specifies a number pad that outputs only ASCII digits.

static var alphabet: UIKeyboardType

Specifies a keyboard optimized for alphabetic entry.

See Also

Configuring the Keyboard Appearance

var keyboardType: UIKeyboardType

The keyboard style associated with the text object.

var keyboardAppearance: UIKeyboardAppearance

The appearance style of the keyboard that is associated with the text object

enum UIKeyboardAppearance

The appearance of the keyboard used by a text-based view. Used with the keyboardAppearance property.

var returnKeyType: UIReturnKeyType

The visible title of the Return key.

enum UIReturnKeyType

The text string displayed in the Return key of a keyboard. Used with the returnKeyType property.

var textContentType: UITextContentType!

Indicates the semantic meaning expected by a text-entry area.

struct UITextContentType

Constants that identify the semantic meaning expected for a text-entry area.