Giter VIP home page Giter VIP logo

yykeyboard's Introduction

YYKeyboard

YYKeyboard 是一个简单的 iOS 安全键盘,支持输入 英文大小写字母、常用符号、数字。

PS:写这个 demo 纯粹是为了使用一下 UIStackView …… 介意的勿用~~🤓

使用

  • 把工程中的子目录 YYKeyboard 添加到工程中。

  • 引用 UITextField 的一个子类、初始化、设置代理、遵循协议 YYKBTextFieldDelegate

#import "YYKBTextField.h"

@interface ViewController () <YYKBTextFieldDelegate>

//或者纯代码初始化,略过~~
@property (weak, nonatomic) IBOutlet YYKBTextField *textField;

@end

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    //...
    self.textField.yy_keyboardDelegate = self;
    //...
}

//...

//textField 内容发生变化,按需实现
- (void)yykb_textField:(YYKBTextField *)textField didEnterCharacters:(NSString *)string {
    NSLog(@"YYKBTextField didEnterCharacters : %@", string);
}

//点击完成按钮,按需实现
- (void)yykb_textFieldDidPressReturn:(YYKBTextField *)textField {
    NSLog(@"YYKBTextField: Login success!");
}

yykeyboard's People

Contributors

atommygirl avatar

Stargazers

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