I. keyboard Style
The uikit framework supports 8 types of keyboards.
- TypedefEnum{
- Uikeyboardtypedefault, // default keyboard: All characters are supported
- Uikeyboardtypeasciicapable, // supports the default ASCII keyboard
- Uikeyboardtypenumbersandpunctuation, // standard phone keyboard, supporting + * # and other symbols
- Uikeyboardtypeurl, // URL keyboard, with. com buttons; only URL characters are supported
- Uikeyboardtypenumberpad, // numeric keypad
- Uikeyboardtypephonepad, // telephone keyboard
- Uikeyboardtypenamephonepad, // telephone keyboard, also supports the user name
- Uikeyboardtypeemailaddress, // Keyboard used to enter the email address
- } Uikeyboardtype;
Usage example:
Textview. keyboardtype = uikeyboardtypenumberpad;
Ii. keyboard appearance
- TypedefEnum{
- Uikeyboardappearancedefault, // default appearance: light gray
- Uikeyboardappearancealert, // dark gray/Graphite
- } Uikeyboardappearance;
Usage example:
Textview. keyboardappearance = uikeyboardappearancedefault;
Iii. Enter key
- Typedef Enum {
- Uireturnkeydefault, // default: gray button, marked with return
- Uireturnkeygo, // the blue button marked with go
- Uireturnkeygoogle, // the blue button marked with Google for search
- Uireturnkeyjoin, // the blue button marked with join
- Uireturnkeynext, // the blue button marked with next
- Uireturnkeyroute, // the blue button marked with route
- Uireturnkeysearch, // the blue button marked with Search
- Uireturnkeysend, // the blue button marked with send
- Uireturnkeyyahoo, // marked with Yahoo! To search
- Uireturnkeydone, // the blue button marked with done
- Uireturnkeyemergencycall, // emergency call button
- } Uireturnkeytype;
Usage example:
Textview. returnkeytype = uireturnkeygo;
4. Automatic capital
- TypedefEnum{
- Uitextautocapitalizationtypenone, // It is not automatically capitalized
- Uitextautocapitalizationtypewords, // uppercase of the first letter of the word
- Uitextautocapitalizationtypesentences, // The first letter of the sentence is capitalized
- Uitextautocapitalizationtypeallcharacters, // all uppercase letters
- } Uitextautocapitalizationtype;
Usage example:
Textfield. autocapitalizationtype = uitextautocapitalizationtypewords;
5. Automatic Correction
- TypedefEnum{
- Uitextautocorrectiontypedefault, // default
- Uitextautocorrectiontypeno, // not automatically corrected
- Uitextautocorrectiontypeyes, // automatically corrected
- } Uitextautocorrectiontype;
Usage example:
Textfield. autocorrectiontype = uitextautocorrectiontypeyes;
Vi. Security text input
Textview. securetextentry = yes;
Enabling secure input is mainly used for password or private data input. Automatic correction and the cache are disabled.
From http://www.linuxidc.com/Linux/2012-02/55374.htm