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

    UIKeyboardTypeDefault:

    UIKeyboardTypeASCIICapable:

    UIKeyboardTypeNumbersAndPunctuation:


    UIKeyboardTypeURL:

    UIKeyboardTypeNumberPad:

    UIKeyboardTypePhonePad:

    UIKeyboardTypeNamePhonePad:

    UIKeyboardTypeEmailAddress:

    UIKeyboardTypeDecimalPad:

    UIKeyboardTypeTwitter:


    UIKeyboardTypeWebSearch:

    UIKeyboardTypeAlphabet:


    作者:苏打肥
    链接:https://www.zhihu.com/question/20350598/answer/66872996
    来源:知乎
    著作权归作者所有,转载请联系作者获得授权。

    iOS已经更新到第9代了,键盘数量也增加到了11个,所以这个问题的答案也需要更新下啦。


    和目前排名首位的答案相比的键盘类型变化:

    • 新增了第1个Default键盘和第4个URL键盘
    • 删除了Alphabet键盘,替换为Default键盘

    1. UIKeyboardTypeDefault常用于文本输入
    2. UIKeyboardTypeASCIICapable常用于密码输入
    3. UIKeyboardTypeNumbersAndPunctuation主键盘显示如上图,次键盘显示字母
    4. UIKeyboardTypeURL适用于网址输入
    5. UIKeyboardTypeNumberPad只有数字的数字键盘
    6. UIKeyboardTypePhonePad可用于拨号的数字键盘
    7. UIKeyboardTypeNamePhonePad
      主键盘显示如上图,次键盘显示如下图
    8. UIKeyboardTypeEmailAddress适用于邮件地址输入的键盘
    9. UIKeyboardTypeDecimalPad带“点”的数字键盘,可用于带有小数点的数字输入
    10. UIKeyboardTypeTwitter
    11. UIKeyboardTypeWebSearch
  • 相关阅读:
    JUnit测试框架使用
    Android开发环境搭建与SD card
    深入Java泛型(Java泛型擦除机制,使用泛型强转时机,擦除对复写影响,协变返回类型)
    DHTML5(控件动态效果综合应用与表单校验)
    DHTML4(select与checkbox应用)
    DHTML3(表格动态创建,删除行/列,表格行排序,行颜色交替高亮显示)
    DHTML2(window对象,下拉列表)
    DHTML1(节点操作)
    JavaScript_语法,语句,函数,对象
    Html/CSS2_了解CSS
  • 原文地址:https://www.cnblogs.com/yecong/p/6221538.html
Copyright © 2011-2022 走看看