Skip to content

JamhonyZ/CJPwdKeyBoardDemo

Repository files navigation

CJPwdKeyBoardDemo

简易支付密码键盘 纯代码布局,简易实现6位交易密码的输入。 使用步骤:

[[CJPwdKeyBoardManager shareInstance] configKeyBoard:self.view pwdTitle:@"测试密码输入"];
__weak typeof(self) weakSelf = self;
[CJPwdKeyBoardManager shareInstance].verificationBlock = ^(UITextField *tfd){
    __strong typeof(weakSelf) strongSelf = weakSelf;
    strongSelf.pwdLabel.text = tfd.text;
};

/*
[CJPwdKeyBoardManager shareInstance].ifNeedAnimate = NO;
[[CJPwdKeyBoardManager shareInstance] configRightItem:@"忘记密码" RightItemBlock:^{
    NSLog(@"忘记密码");
}];
[[CJPwdKeyBoardManager shareInstance] showKeyBoard];
[[CJPwdKeyBoardManager shareInstance] hiddenKeyBoard];
*/

-------------- 效果图 ---------------

image

About

简易支付密码键盘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published