Sometimes we do not display the phone keyboard on the Xcode virtual machine, that is because we do not set the correct:
You can do this: Make sure the third box also has a checkmark (Toggle software Keyboard)
First, the keyboard style
Supports 8 styles of keyboard.
- typedef enum {
- uikeyboardtypedefault, c15> c25> // default keyboard: All characters are supported
- uikeyboardtypeasciicapab le, // ASCII-enabled default keyboard /c19>
- uikeyboardtypenumbersand punctuation, // standard telephone keypad, support +* #等符号
- &NBSP; uikeyboardtypeurl, < Span style= "Color:rgb (0,130,0); Word-wrap:normal; Word-break:normal ">// URL keyboard with. com button; URL character only;
- &NBSP; uikeyboardtypenumberpad, //numeric keypad
- &NBSP; uikeyboardtypephonepad, //&NBSP; telephone keypad
- &NBSP; uikeyboardtypenamephonep ad, //&NBSP; telephone keypad, Input person name is also supported;
- uikeyboardtypeemailaddre SS, // keyboard for entering e-mail addresses
- } Uikeyboardtype;
Usage Use cases:
TextField. Keyboardtype = uikeyboardtypenumberpad;
Second, keyboard appearance
- typedef enum {
- uikeyboardappearancedefa ult , // default appearance: Light grey
- uikeyboardappearancealer T, // dark grey/graphite
- } uikeyboardappearance;
Usage Use cases:
TextField. Keyboardappearance=uikeyboardappearancedefault;
Third, enter
- typedef enum &NBSP; {
- &NBSP; uireturnkeydefault, //default: Gray button, Marked with return
- &NBSP; uireturnkeygo, //The blue button labeled Go
- &NBSP; uireturnkeygoogle, //blue button labeled Google Used to search for
- &NBSP; uireturnkeyjoin, //blue button labeled Join
- &NBSP; uireturnkeynext, //blue button labeled Next
- &NBSP; Uireturnkeyroute, //blue button labeled route
- &NBSP; uireturnkeysearch, //blue button labeled Search
- &NBSP; uireturnkeysend, //blue button labeled Send
- &NBSP; Uireturnkeyyahoo, //The blue button labeled Yahoo! Used to search for
- &NBSP; uireturnkeydone, //The blue button labeled done
- uireturnkeyemergencycall, //Emergencycall button
- } Uireturnkeytype;
Usage Use cases:
TextField. Returnkeytype=uireturnkeygo;
Four, the input box becomes the password box
Textfield.securetextentry=yes;
IOS Keyboard Type Customization Induction