Giter Site home page Giter Site logo

flyofyw / ottokeyboardview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuotto/ottokeyboardview

0.0 1.0 0.0 152 KB

自定义键盘,支持数字、小数点、身份证、十六进制键盘、随机布局的安全数字键盘

License: MIT License

Objective-C 83.32% Ruby 16.68%

ottokeyboardview's Introduction

OttoKeyboardView

自定义键盘,支持多种样式(数字键盘、小数点键盘、身份证键盘、十六进制数键盘、随机布局的安全数字键盘),切合项目需求。支持UITextFieldUITextView

           

           

安全键盘

具体使用

在需要用到的地方导入头文件#import "OttoKeyboardView.h"
根据需求使用OttoTextFieldOttoTextView

@property (nonatomic, strong) OttoTextField *certNoTextField;
@property (nonatomic, strong) OttoTextView *hexTextView;

    self.hexTextView.textViewClickReturnDelegate = self;
    //设置是否使用自定义键盘
    [self.hexTextView setTextViewKeyboardType:TextViewKeyboardTypeNumber];
    //设置自定义键盘类型
    [self.hexTextView setNumberKeyboardType:NumberKeyboardTypeHEX];

安全键盘的使用注意事项

如果想要实现每次收起键盘之后再次弹出新的随机布局,那么需要实现delegate方法

- (void)textFieldDidEndEditing:(UITextField *)textField{
[self.randomTextField setKeyboardType:KeyboardTypeNumber];
[self.randomTextField setNumberKeyboardType:NumberKeyboardTypeRandom];
}

安装

1.使用CocoaPods安装
pod 'OttoKeyboardView'
2.直接使用,将OttoKeyboardView文件夹拖到你的工程里面

版本更新记录

v0.0.5

  • 【新增】: 随机布局的安全数字键盘。
  • 【新增】: 删除键增加长按清空功能。

其他

本库没有导入任何其他的第三方内容,可以放心使用。在使用前,您可以下载查看示例程序

如果在使用过程中遇到bug,希望你能Issues我,谢谢

如果您有什么建议可以Issues我,谢谢

后续我会持续更新,为它添加更多的功能,欢迎star ^.^

ottokeyboardview's People

Contributors

wuotto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.