Keyboard style settings-iOS development

Source: Internet
Author: User

I. keyboard Style

The uikit framework supports 8 types of keyboards.

  1. TypedefEnum{
  2. Uikeyboardtypedefault, // default keyboard: All characters are supported
  3. Uikeyboardtypeasciicapable, // supports the default ASCII keyboard
  4. Uikeyboardtypenumbersandpunctuation, // standard phone keyboard, supporting + * # and other symbols
  5. Uikeyboardtypeurl, // URL keyboard, with. com buttons; only URL characters are supported
  6. Uikeyboardtypenumberpad, // numeric keypad
  7. Uikeyboardtypephonepad, // telephone keyboard
  8. Uikeyboardtypenamephonepad, // telephone keyboard, also supports the user name
  9. Uikeyboardtypeemailaddress, // Keyboard used to enter the email address
  10. } Uikeyboardtype;

Usage example:

Textview. keyboardtype = uikeyboardtypenumberpad;

Ii. keyboard appearance

  1. TypedefEnum{
  2. Uikeyboardappearancedefault, // default appearance: light gray
  3. Uikeyboardappearancealert, // dark gray/Graphite
  4. } Uikeyboardappearance;

Usage example:

Textview. keyboardappearance = uikeyboardappearancedefault;

Iii. Enter key

  1. Typedef Enum {
  2. Uireturnkeydefault, // default: gray button, marked with return
  3. Uireturnkeygo, // the blue button marked with go
  4. Uireturnkeygoogle, // the blue button marked with Google for search
  5. Uireturnkeyjoin, // the blue button marked with join
  6. Uireturnkeynext, // the blue button marked with next
  7. Uireturnkeyroute, // the blue button marked with route
  8. Uireturnkeysearch, // the blue button marked with Search
  9. Uireturnkeysend, // the blue button marked with send
  10. Uireturnkeyyahoo, // marked with Yahoo! To search
  11. Uireturnkeydone, // the blue button marked with done
  12. Uireturnkeyemergencycall, // emergency call button
  13. } Uireturnkeytype;

Usage example:

Textview. returnkeytype = uireturnkeygo;

4. Automatic capital

  1. TypedefEnum{
  2. Uitextautocapitalizationtypenone, // It is not automatically capitalized
  3. Uitextautocapitalizationtypewords, // uppercase of the first letter of the word
  4. Uitextautocapitalizationtypesentences, // The first letter of the sentence is capitalized
  5. Uitextautocapitalizationtypeallcharacters, // all uppercase letters
  6. } Uitextautocapitalizationtype;

Usage example:

Textfield. autocapitalizationtype = uitextautocapitalizationtypewords;

5. Automatic Correction

  1. TypedefEnum{
  2. Uitextautocorrectiontypedefault, // default
  3. Uitextautocorrectiontypeno, // not automatically corrected
  4. Uitextautocorrectiontypeyes, // automatically corrected
  5. } 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.