All Projects → parkingwang → Vehicle Keyboard Ios

parkingwang / Vehicle Keyboard Ios

Licence: other
停车王车牌号码专用键盘 - iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Vehicle Keyboard Ios

React Pong
✅ A pong game React component
Stars: ✭ 66 (-31.25%)
Mutual labels:  keyboard
Arisu Case
Case design files for Arisu Keyboard
Stars: ✭ 83 (-13.54%)
Mutual labels:  keyboard
Neatinput
A .NET standard project which aims to make keyboard and mouse input monitoring easy on Windows and eventually Linux.
Stars: ✭ 89 (-7.29%)
Mutual labels:  keyboard
Fx Experience
fx-experience -> fx onscreen keyboard
Stars: ✭ 72 (-25%)
Mutual labels:  keyboard
Keynode
Interactive Keyboard Controller for Swift
Stars: ✭ 76 (-20.83%)
Mutual labels:  keyboard
Jp01
JP01 - Arisu Custom CNC Aluminum Unibody Keyboard Case
Stars: ✭ 84 (-12.5%)
Mutual labels:  keyboard
Kuikeyboard
Keyboard Handler in iOS
Stars: ✭ 64 (-33.33%)
Mutual labels:  keyboard
Gohook
GoHook, Go global keyboard and mouse listener hook
Stars: ✭ 94 (-2.08%)
Mutual labels:  keyboard
Lipika Ime
Input Method Engine (IME) for Mac OS X with built-in support for all Indic Languages
Stars: ✭ 76 (-20.83%)
Mutual labels:  keyboard
Simple Keyboard
Javascript Virtual Keyboard - Customizable, responsive and lightweight
Stars: ✭ 1,275 (+1228.13%)
Mutual labels:  keyboard
Vimperator Labs
Vimperator
Stars: ✭ 1,184 (+1133.33%)
Mutual labels:  keyboard
Mouse2joystick custom cemu
An AutoHotkey Script to allow the use of Mouse and Keyboard control in CEMU. This uses vJoy and provides several additional features over regular keyboard control, like: the ability to control the camera with the mouse, toggle walking speed, in BotW use MouseWheel to change weapons, a separate Toggle key for ZL useful for locking onto a target in BotW.
Stars: ✭ 76 (-20.83%)
Mutual labels:  keyboard
Quickcut
QuickCut is a cross-platform keyboard manager that both facilitates key mapping and allows the configuration of global hotkeys triggering user defined actions.
Stars: ✭ 84 (-12.5%)
Mutual labels:  keyboard
Keymousego
类似按键精灵的鼠标键盘录制和自动化操作 模拟点击和键入 | automate mouse clicks and keyboard input
Stars: ✭ 1,145 (+1092.71%)
Mutual labels:  keyboard
Awesome Mechanical Keyboard
⌨️ A curated list of Open Source Mechanical Keyboard resources.
Stars: ✭ 1,294 (+1247.92%)
Mutual labels:  keyboard
Nativescript Keyboard Toolbar
⌨️🛠Add a customizable toolbar on top of the soft keyboard
Stars: ✭ 66 (-31.25%)
Mutual labels:  keyboard
Rxkeyboard
Reactive Keyboard in iOS
Stars: ✭ 1,246 (+1197.92%)
Mutual labels:  keyboard
Hallelujahim
hallelujahIM(哈利路亚 英文输入法) is an intelligent English input method with auto-suggestions and spell check features, Mac only.
Stars: ✭ 1,334 (+1289.58%)
Mutual labels:  keyboard
Evscript
A tiny sandboxed Dyon scripting environment for evdev input devices that lets you do e.g. xcape in Wayland
Stars: ✭ 91 (-5.21%)
Mutual labels:  keyboard
Audiokitsynthone
AudioKit Synth One: Open-Source iOS Synthesizer App
Stars: ✭ 1,258 (+1210.42%)
Mutual labels:  keyboard

停车王车牌号码专用键盘 VehicleKeyboard - iOS

概述

  • 停车王车牌号码专用键盘ios版,支持新能源、武警、领事馆等多项专用格式车牌。
  • 代码为swift编写,已支持oc调用,可以绑定UIview使用格子输入或绑定UItextfield输入,键盘与系统键盘用法类似。

demo需要pod install一下才能运行

gif gif

如何使用

使用cocoaPods导入

在podfile中添加

use_frameworks!

pod 'VehicleKeyboard-swift',

然后pod install一下

OC调用

oc引用pod中的库

#import "VehicleKeyboard_swift-Swift.h"

直接作为inputView使用

[self.myTextField changeToPlatePWKeyBoardInpurView];

//一些键盘事件的监听方法
self.myTextField.plateChange = ^(NSString *text,BOOL complete) {
    NSLog(@"系统框车牌发生变化:%@\n是否输入完成:%@",text,complete ? @"是" : @"否");
};

self.myTextField.pwKeyBoardShow = ^{
    NSLog(@"系统框车牌键盘显示");
};

self.myTextField.pwKeyBoardHidden = ^{
    NSLog(@"系统框车牌键盘隐藏");
};

直接作为inputView使用时,回调于取值都与系统方法一直,直接当做系统UItextfield使用即可

格子式车牌专用输入框调用

首先在需要显示的位置摆放一个刚实例化的UIView, 然后创建一个PWHandler对象将UIView于格子车牌输入框进行绑定


@property (strong,nonatomic) PWHandler *handler;
@property (weak, nonatomic) IBOutlet UIView *plateInputView;

self.handler = [PWHandler new];
//改变主题色
self.handler.mainColor = [UIColor redColor];
//改变文字大小
self.handler.textFontSize = 18;
//改变文字颜色
self.handler.textColor = [UIColor greenColor];

[self.handler setKeyBoardViewWithView:self.plateInputView];

self.handler.delegate = self;

格子输入框的各种回调方法


//车牌输入发生变化时的回调
- (void)palteDidChnageWithPlate:(NSString *)plate complete:(BOOL)complete{
NSLog(@"输入车牌号为:%@ \n 是否完整:%@",plate,complete ? @"完整" : @"不完整");
}

//输入完成点击确定后的回调
- (void)plateInputCompleteWithPlate:(NSString *)plate{
NSLog(@"输入完成。车牌号为:%@",plate);
}

//车牌键盘出现的回调
- (void)plateKeyBoardShow{
NSLog(@"键盘显示了");
}

//车牌键盘消失的回调
- (void) plateKeyBoardHidden{
NSLog(@"键盘隐藏了");
}

Swift调用

引用pod中的库

import VehicleKeyboard_swift

直接作为inputView使用

myTextField.changeToPlatePWKeyBoardInpurView()

//监听键盘的改变
myTextField.plateChange = { (text,complete) in
    print("系统输入框键盘改变了text:\(text)\n是否完成车牌输入:\(complete ? "是" : "否")")
}

myTextField.pwKeyBoardShow = {
   print("系统框车牌键盘显示了")
}

myTextField.pwKeyBoardHidden = {
   print("系统框车牌键盘隐藏了")
}

直接作为inputView使用时,回调于取值都与系统方法一直,直接当做系统UItextfield使用即可

格子式车牌专用输入框调用

首先在需要显示的位置摆放一个刚实例化的UIView, 然后创建一个PWHandler对象将UIView于格子车牌输入框进行绑定

let handler = PWHandler()
@IBOutlet weak var plateInputVIew: UIView!

handler.delegate = self
//改变主题色
handler.mainColor = UIColor.red
//改变字体大小
handler.textFontSize = 18
//改变字体颜色
handler.textColor = UIColor.blue

handler.setKeyBoardView(view: plateInputVIew)

格子输入框的各种回调方法

//输入完成点击确定后的回调
func plateInputComplete(plate: String) {
print("输入完成车牌号为:" + plate)
}
//车牌输入发生变化时的回调
func palteDidChnage(plate:String,complete:Bool) {
print("输入车牌号为:" + plate + "\n输入是否完整?:" + (complete ? "完整" : "不完整"))
}
//车牌键盘出现的回调
func plateKeyBoardShow() {
print("车牌键盘显示")
}
//车牌键盘消失的回调
func plateKeyBoardHidden() {
print("车牌键盘隐藏")
}

主要类的介绍

详细属性介绍请看注释

  • PWKeyboardView:核心类,主要实现键盘逻辑与布局;
  • PWHandler:自定义输入框的核心类,主要实现输入框逻辑,若使用者希望更好的调整布局,可继承此类重写layout的代理方法;
  • Engine:键盘逻辑的核心类,实现键位的布局和注册。

注意

  • 在podfile中没有use_frameworks!这句指令的话,请加上,加上之后导入方式会有变化,请百度。
  • 直接作为inputView使用时,当输入长度超过车牌规定长度时,会默认更新最后一位输入内容
  • 键盘除了主题色外,其他样式暂不支持修改

支持

VehicleKeyboard是停车王品牌的各端产品线的基础组件,专为提高中国车牌号码输入速度而定制开发的专用键盘组件,包括以下三个项目:

可能的Q&A

  • Q: pod intall的时候失败提示找不到这个库?
  • A: pod其实是找的本地缓存目录,新上传的库可能出现找不到的情况,删除本地的~/Library/Caches/CocoaPods/search_index.json 缓存目录,用pod repo update master这个命令更新了本地的索引库,再pod install 试试。
  • Q: 编译报错:xxx.nib This target might include its own product或是引用头文件时一直not find
  • A: 在podfile中加上use_frameworks!变更引用方式,加上之后 导入方式要变 例如 #import"SVProgressHUD.h" 改为 #import <SVProgressHUD/SVProgressHUD.h>
  • Q: 我设置了一些ui参数,但是实际显示和设置又些出入?
  • A: 请在设置各种ui参数后再调用setKeyBoardView方法。
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].