Giter VIP home page Giter VIP logo

customkeyboard's Introduction

CustomKeyBoard 一个简单的自定有键盘轮子

   

####做的一个键盘的简单小轮子 。欢迎 点 ✨ 👏🏻👏🏻👏🏻👏🏻👏🏻

演示

111.gif 222.gif

安装

CocoaPods

  1. 将 cocoapods 更新至最新版本. pod 'XMTXCustomKeyBoard', '~> 1.1.3'
  2. 导入 <XMTextField.h>

手动安装

  1. 下载demo。
  2. 把 demo中的 Classes 文件下的 CXXkeyBoard 文件夹 整体导入工程即可
  3. 导入 XMTextField.h

用法

pod 导入

pod 'XMTXCustomKeyBoard', '~> 1.1.3'

不使用pod导入 那么 下载demo。把 demo中的 Classes 文件下的 CXXkeyBoard 文件夹 整体导入工程即可

如果是pod 导入 到入 <XMTextField.h> 创建 XMTextField 输入框,设置对应的枚举即可 ,下面是pod导入的使用方法。 非pod导入可参考demo


#import <XMTextField.h>

@interface ViewController ()
@property (weak, nonatomic) IBOutlet XMTextField *xmtextFile;

@end

@implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
self.xmtextFile.xmKeyBoardType = XMkeyBoardType_CarNumHeader;
}

如何自定义

如何自定义 简单的键盘 。可参考demo 中的 NumKeyBoardStyleOne。

  1. 首先继承 XMBasekeyBoardView ,按照demo ,实现对应的ui即可
  2. 实现了UI需要在头文件 XMKeyBoardHeader 添加对应的枚举
  3. 枚举实现了 导入对应的 键盘类 到 XMKeyBoardView 然后设置成对应的属性,在懒加载实现
  4. 在 XMKeyBoardView 的 layoutSubviews 实现对应枚举即可

customkeyboard's People

Contributors

cgmsuccess avatar

Watchers

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