美文网首页其它技术点iOS Developer
iOS键盘样式(UIKeyboardType)

iOS键盘样式(UIKeyboardType)

作者: 634dd6ee7e08 | 来源:发表于2017-04-26 11:41 被阅读217次

    0. 前言

    最近工作需要梳理一下键盘样式,基于最新的iOS版本做了一个整理,选取AppStore里搜索“输入法”排名前四的第三方输入法进行对比,发出来供大家参考。

    • 基于iOS 10.3
    • 包括系统键盘和第三方键盘(百度输入法、搜狗输入法、讯飞输入法、GO输入法)

    第三方输入法的键盘样式:
    -百度输入法:拼音拇指
    -搜狗输入法:大9键
    -讯飞输入法:拼音9键
    -GO 输入法 :T9-中文(中国)(拼音)

    1. UIKeyboardTypeDefault

    // Default type for the current input method.

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    2. UIKeyboardTypeASCIICapable

    // Displays a keyboard which can enter ASCII characters

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    3. UIKeyboardTypeNumbersAndPunctuation

    // Numbers and assorted punctuation.

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    4. UIKeyboardTypeURL

    // A type optimized for URL entry (shows . / .com prominently).

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    5. UIKeyboardTypeNumberPad

    // A number pad with locale-appropriate digits (0-9, ۰-۹, ०-९, etc.). Suitable for PIN entry.

    Apple 简体拼音输入法 其他输入法(会强制使用系统键盘)

    6. UIKeyboardTypePhonePad

    // A phone pad (1-9, *, 0, #, with letters under the numbers).

    Apple 简体拼音输入法 其他输入法(会强制使用系统键盘)

    7. UIKeyboardTypeNamePhonePad

    // A type optimized for entering a person's name or phone number.

    使用第三方输入法(会强制使用系统键盘)

    Apple 简体拼音输入法 Apple English (US)输入法
    Apple 简体拼音输入法 Apple English (US)输入法

    8. UIKeyboardTypeEmailAddress

    // A type optimized for multiple email address entry (shows space @ . prominently).

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    9. UIKeyboardTypeDecimalPad

    // A number pad with a decimal point.

    Apple 简体拼音输入法 其他输入法(会强制使用系统键盘)

    10. UIKeyboardTypeTwitter

    // A type optimized for twitter text entry (easy access to @ #)

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    11. UIKeyboardTypeWebSearch

    // A default keyboard type with URL-oriented addition (shows space . prominently).

    Apple 简体拼音输入法 Apple English (US)输入法
    百度输入法 搜狗输入法
    讯飞输入法 GO输入法

    12. UIKeyboardTypeASCIICapableNumberPad

    // A number pad (0-9) that will always be ASCII digits.

    Apple 简体拼音输入法 其他输入法(会强制使用系统键盘)

    相关文章

      网友评论

        本文标题:iOS键盘样式(UIKeyboardType)

        本文链接:https://www.haomeiwen.com/subject/rybvzttx.html