V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
andyL
V2EX  ›  iDev

方便输入大写字母和数字的简化键盘

  •  
  •   andyL ·
    lyleLH · 2017-06-07 13:56:38 +08:00 · 3073 次点击
    这是一个创建于 2486 天前的主题,其中的信息可能已经有所发展或是发生改变。

    PM 的需求,避免在某些输入场景下,用户反复进行键盘切换

    截图

    repo 地址: https://github.com/lyleLH/KPKeyBoard

    11 条回复    2017-06-07 22:28:43 +08:00
    blueset
        1
    blueset  
       2017-06-07 14:00:43 +08:00 via Android
    好奇为什么是字母序。
    andyL
        2
    andyL  
    OP
       2017-06-07 14:07:55 +08:00
    @blueset 我擦,你一下就找出个 bug,还没提测,我改改数组的顺序先 哈哈
    andyL
        3
    andyL  
    OP
       2017-06-07 14:13:25 +08:00
    @blueset 已经修改成正常键盘布局的顺序 😅
    8023
        4
    8023  
       2017-06-07 16:12:26 +08:00
    强迫症表示数字格和字母格没对齐很难受.
    Z 旁边空了一个格也很难受.
    把 0 拿下来放在 Z 的右边不好么?
    shashashameme
        5
    shashashameme  
       2017-06-07 16:56:10 +08:00
    github README 里面的 gif 太大了,超出屏幕。
    sobigfish
        6
    sobigfish  
       2017-06-07 16:58:53 +08:00
    其实字母顺序也没问题(有些并不熟悉键盘排序的人输入字母 这个顺序可能耗时更短)
    加个换顺序的按钮?
    sobigfish
        7
    sobigfish  
       2017-06-07 17:03:07 +08:00
    建议可以自定义多个 layout
    比如
    1. 身份证号码,只有数字和大写 X
    2. 银行 app 那种随机位置的数字键盘
    3 键盘序
    4.字母序
    andyL
        8
    andyL  
    OP
       2017-06-07 17:26:36 +08:00
    @shashashameme 哈哈哈哈 我看看 readme 能不能改改
    andyL
        9
    andyL  
    OP
       2017-06-07 17:27:53 +08:00
    @sobigfish 感谢指出。不过我其实并不想动手写的那么复杂,主要目的就是把那个点击动效的一种实现方式写出来给人做参考。
    andyL
        10
    andyL  
    OP
       2017-06-07 18:11:21 +08:00
    @shashashameme 试着更改 markdown 语法的参数或者用 html 标签的方式 6 次以上吧,都有各种问题( chrome 和 safari 下),看了一些成熟的开源库中这个 gif 显示的做法都是牺牲了图像品质的。所以我还是改回去了,只不过用了更小一点的图,进去加载会快点。

    不过还是那么大 嘿嘿嘿。

    有没有路过的教我几招,感谢。
    Nobitasean
        11
    Nobitasean  
       2017-06-07 22:28:43 +08:00
    这键盘不是逼死强迫症就是治好强迫症
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3719 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.