First, the keyboard style
Supports 8 styles of keyboard.
typedef ENUM {
Uikeyboardtypedefault,// default keyboard: All characters supported
Uikeyboardtypeasciicapable,// ASCII -enabled default keyboard
Uikeyboardtypenumbersandpunctuation,// standard telephone keypad, support +*# and other symbols
Uikeyboardtypeurl,//URL keyboard with . com button; url characters only
Uikeyboardtypenumberpad,// numeric keypad
Uikeyboardtypephonepad,// telephone keypad
Uikeyboardtypenamephonepad,// telephone keypad, input person name also supported
Uikeyboardtypeemailaddress,// keyboard for entering e-mail addresses
} Uikeyboardtype;
Usage Use cases:
Textfield.keyboardtype = Uikeyboardtypenumberpad;
Second, keyboard appearance
typedef ENUM {
Uikeyboardappearancedefault,// default appearance: Light grey
Uikeyboardappearancealert,// dark grey / graphite
} uikeyboardappearance;
Usage Use cases:
Textfield.keyboardappearance=uikeyboardappearancedefault;
Third, enter
typedef ENUM {
Uireturnkeydefault,// Default: Gray button, marked with Return
Uireturnkeygo,// blue button labeled Go
Uireturnkeygoogle,// blue button labeled Google for search
Uireturnkeyjoin,// blue button labeled Join
Uireturnkeynext,// blue button labeled Next
Uireturnkeyroute,// blue button labeled Route
Uireturnkeysearch,// blue button labeled Search
Uireturnkeysend,// blue button labeled Send
Uireturnkeyyahoo,// blue button labeled Yahoo! for searching
Uireturnkeydone,// blue button labeled done
Uireturnkeyemergencycall,// emergency call button
} Uireturnkeytype;
Usage Use cases:
Textfield.returnkeytype=uireturnkeygo;
Four, the input box becomes the password box
Textfield.securetextentry=yes;
IOS Keyboard Type Customization Induction