Giter Club home page Giter Club logo

lvkeyboard's Introduction

自定义键盘 由于ios系统键盘会缓存用户输入的数据到系统文件下,而且是明文存储,存在帐号密码泄漏风险。所以一些涉及资金的app一般都是自定义
键盘。本项目作者在别人的代码基础上做了些修改,美化了界面,添加了按钮点击效果,去掉了字符输入。使用如下:

1、导入LVKeyboard.framework,并将其加入项目配置General下面的Embedded Binaries里

2、调用方式:

UITextFiled* tf = [[UITextField alloc]init];     

LVKeyboard* keyboard = [[LVKeyboard alloc] init];      

keyboard.delegate = self;      

tf.inputView = keyboard;       

实现LVKeyboard代理:

  • (void)keyboard:(LVKeyboard *)keyboard didClickTextButton:(UIButton *)textBtn string:(NSMutableString *)string;{
  • tf.text = string;

}

  • (void)keyboard:(LVKeyboard *)keyboard didClickDeleteButton:(UIButton *)deleteBtn string:(NSMutableString *)string;

{

tf.text = string;       

}

lvkeyboard's People

Contributors

dinner avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.