Keyboard-related settings (Uitextfield)
Keyboard style style about settings:
Original article:
First, the keyboard style
The Uikit Framework supports 8 styles of keyboards.
- typedef ENUM {
- Uikeyboardtypedefault,//default keyboard: All characters supported
- Uikeyboardtypeasciicapable,//ASCII-enabled default keyboard
- Uikeyboardtypenumbersandpunctuation,//Standard telephone keypad, supports +* #等符号
- Uikeyboardtypeurl,//URL keyboard with. com button; URL characters only
- Uikeyboardtypenumberpad,//numeric keypad
- Uikeyboardtypephonepad,//Telephone keypad
- Uikeyboardtypenamephonepad,//telephone keypad, also support input person name
- Uikeyboardtypeemailaddress,//keyboard for entering e-mail addresses
- } Uikeyboardtype;
Usage Use cases:
Textview.keyboardtype = Uikeyboardtypenumberpad;
Second, keyboard appearance
- typedef ENUM {
- Uikeyboardappearancedefault,//default appearance: Light grey
- Uikeyboardappearancealert,//dark grey/Graphite
- } uikeyboardappearance;
Usage Use cases:
Textview.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:
Textview.returnkeytype=uireturnkeygo;
Four, automatic capitalization
- typedef ENUM {
- Uitextautocapitalizationtypenone,//not automatically capitalized
- Uitextautocapitalizationtypewords,//capitalize the first letter of the word
- Uitextautocapitalizationtypesentences,//capitalize the first letter of the sentence
- Uitextautocapitalizationtypeallcharacters,//All letters capitalized
- } Uitextautocapitalizationtype;
Usage Use cases:
Textfield.autocapitalizationtype = Uitextautocapitalizationtypewords;
Five, automatic correction
- typedef ENUM {
- uitextautocorrectiontypedefault,//Default
- uitextautocorrectiontypeno,//does not automatically correct
- uitextautocorrectiontypeyes,//Auto Correction
- } Uitextautocorrectiontype;
Usage Use cases:
Textfield.autocorrectiontype = Uitextautocorrectiontypeyes;
Six, secure text input
Textview.securetextentry=yes;
Turning on secure input is primarily for passwords or some private data input, which disables AutoCorrect and self-caching.
Keyboard style style about settings