zoukankan      html  css  js  c++  java
  • iOS键盘类型最全

    一、键盘风格  

    UIKit框架支持8种风格键盘。

      1. typedef enum {  
      2.     UIKeyboardTypeDefault,                // 默认键盘:支持所有字符   
      3.     UIKeyboardTypeASCIICapable,           // 支持ASCII的默认键盘   
      4.     UIKeyboardTypeNumbersAndPunctuation,  // 标准电话键盘,支持+*#等符号   
      5.     UIKeyboardTypeURL,                    // URL键盘,有.com按钮;只支持URL字符   
      6.     UIKeyboardTypeNumberPad,              //数字键盘   
      7.     UIKeyboardTypePhonePad,               // 电话键盘   
      8.     UIKeyboardTypeNamePhonePad,           // 电话键盘,也支持输入人名字   
      9.     UIKeyboardTypeEmailAddress,           // 用于输入电子邮件地址的键盘   
      10. } UIKeyboardType; 

    用法用例:

    textView.keyboardtype= UIKeyboardTypeNumberPad;

    UIKeyboardTypeDefault:

    UIKeyboardTypeASCIICapable:

    UIKeyboardTypeNumbersAndPunctuation:

    UIKeyboardTypeURL:

    UIKeyboardTypeNumberPad:

    UIKeyboardTypePhonePad:

    UIKeyboardTypeNamePhonePad:

    UIKeyboardTypeEmailAddress:

    UIKeyboardTypeDecimalPad:

    UIKeyboardTypeTwitter:

    UIKeyboardTypeWebSearch:

    UIKeyboardTypeAlphabet:

  • 相关阅读:
    初次使用github
    linux 如何显示一个文件的某几行
    ubuntu 2
    在html页中作跳转
    gmail邮箱 livemail 设置
    配置nginx与wordpress碰到的一个偱环重定向问题
    在nginx服务部署startbbs
    Attaching the script debugger to process *** failed on machine "***"
    linux查看文件夹大小
    linux 合并文件
  • 原文地址:https://www.cnblogs.com/OIMM/p/5203262.html
Copyright © 2011-2022 走看看