All Projects → jinht → VerificationCodeBox

jinht / VerificationCodeBox

Licence: MIT license
验证码 && 密码 校验View(类似于支付宝、网商银行等密码校验框)

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to VerificationCodeBox

DPOTPView
Customisable OTP view and Passcode view
Stars: ✭ 52 (+108%)
Mutual labels:  verification
gini
A fast SAT solver
Stars: ✭ 139 (+456%)
Mutual labels:  verification
libvata
VATA Tree Automata Library
Stars: ✭ 23 (-8%)
Mutual labels:  verification
verif
Software for verifying weather forecasts
Stars: ✭ 70 (+180%)
Mutual labels:  verification
Hemmelig.app
Keep your sensitive information out of chat logs, emails, and more with encrypted secrets.
Stars: ✭ 183 (+632%)
Mutual labels:  secret
netdice
A scalable and accurate probabilistic network configuration analyzer verifying network properties in the face of random failures.
Stars: ✭ 28 (+12%)
Mutual labels:  verification
secrets
Simple Secret Sharing Service for social and decentralised management of passwords
Stars: ✭ 30 (+20%)
Mutual labels:  secret
wal
WAL enables programmable waveform analysis.
Stars: ✭ 36 (+44%)
Mutual labels:  verification
node-email-verifier
The best possible way to verify and validate an email address.
Stars: ✭ 38 (+52%)
Mutual labels:  verification
pact-provider-verifier
Cross-platform, generic language, Pact provider verification tool
Stars: ✭ 27 (+8%)
Mutual labels:  verification
nim-systemverilog-dpic
Using Nim to interface with SystemVerilog test benches via DPI-C
Stars: ✭ 18 (-28%)
Mutual labels:  verification
proofable-image
Build trust into your image by creating a blockchain certificate for it
Stars: ✭ 17 (-32%)
Mutual labels:  verification
qcert
Compilation and Verification of Data-Centric Languages
Stars: ✭ 50 (+100%)
Mutual labels:  verification
tss-rb
A Ruby implementation of Threshold Secret Sharing (Shamir) as defined in IETF Internet-Draft draft-mcgrew-tss-03.txt
Stars: ✭ 22 (-12%)
Mutual labels:  secret
vigor
Main repository of the Vigor NF verification project.
Stars: ✭ 40 (+60%)
Mutual labels:  verification
lms-verify
generative programming & verification
Stars: ✭ 29 (+16%)
Mutual labels:  verification
gnirts
Obfuscate string literals in JavaScript code.
Stars: ✭ 65 (+160%)
Mutual labels:  secret
nats
A program to hide file into executable binary.
Stars: ✭ 16 (-36%)
Mutual labels:  secret
shamirs-secret-sharing
A simple implementation of Shamir's Secret Sharing configured to use a finite field in GF(2^8) with 128 bit padding
Stars: ✭ 59 (+136%)
Mutual labels:  secret
node-identif
🔑 Helper class to verify one's identity via personal channels(SMS, Phone, E-Mail and more!)
Stars: ✭ 27 (+8%)
Mutual labels:  verification

JhtVerificationCodeBox

先上图,看一下是否符合你的场景吧!

Function Description

  1. 密文 || 明文输入
  2. 变色 || 抖动清空
  3. 呼吸闪烁占位符下划线

how to use

1. podfile

platform:ios, '8.0'

target 'VerificationCodeBox' do

pod 'JhtVerificationCodeBox'
        
end

2. 简单的初始化:快速集成做这些就够了

JhtVerificationCodeView *verificationCodeView = [[JhtVerificationCodeView alloc] initWithFrame:CGRectMake(40, 20 + 40 + 100 * i, CGRectGetWidth(self.view.frame) - 80, 60)];
verificationCodeView.endEditBlcok = ^(NSString *text) {
     NSLog(@"输入的验证码为:%@", text);
};

3. 选配项 :根据需求做相关property的配置

#pragma mark optional
/** 展示 类型
 *  default:VerificationCodeViewType_Custom
 */
@property (nonatomic, assign) JhtVerificationCodeViewType codeViewType;

/** 是否需要边框(每个格子的框)
 *  default:NO
 */
@property (nonatomic, assign) BOOL hasBoder;
/** 边框颜色(hasBoder = YES)
 *  default:[UIColor grayColor]
 */
@property (nonatomic, strong) UIColor *boderColor;

/** 验证码总数
 *  default:6
 */
@property (nonatomic, assign) NSInteger total;

/** 文字颜色
 *  default:[UIColor blackColor]
 */
@property (nonatomic, strong) UIColor *textColor;
/** 文字UIFont
 *  default:[UIFont boldSystemFontOfSize:17]
 */
@property (nonatomic, strong) UIFont *textFont;

/** 是否需要占位符下划线 
 *  default:NO
 */
@property (nonatomic, assign) BOOL hasUnderLine;
/** 占位符下划线颜色(hasUnderLine = YES)
 *  default:[UIColor grayColor]
 */
@property (nonatomic, strong) UIColor *underLineColor;

/** 未输入状态下占位符下划线是否闪烁
 *  default:NO
 */
@property (nonatomic, assign) BOOL isFlashing_NoInput;

/** 是否需要输入位数满后清空
 *  default:NO
 */
@property (nonatomic, assign) BOOL isClearWhenInputFull;

4. 常用方法说明

/** 改变所有已输入验证码的颜色(通常在输入验证码错误的情况下用到)
 *  scenes:验证码输入有误变色
 *  hasShakeAndClear:是否需要抖动 && 清空
 */
- (void)changeAllAlreadyInputTextColorWithColor:(UIColor *)color hasShakeAndClear:(BOOL)hasShakeAndClear;

// 变色 && 震动 && 清空
[verificationCodeView changeAllAlreadyInputTextColorWithColor:col hasShakeAndClear:YES];
  • 具体使用详见demo(使用demo之前请先 pod install

Remind

  • ARC
  • iOS >= 8.0
  • iPhone \ iPad

Hope

  • If you find bug when used,Hope you can Issues me,Thank you or try to download the latest code of this framework to see the BUG has been fixed or not
  • If you find the function is not enough when used,Hope you can Issues me,I very much to add more useful function to this framework ,Thank you !
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].