项目介绍:
示例:
- JHVCConfig *config = [[JHVCConfig alloc] init];
- config.inputBoxNumber = 6;
- config.inputBoxSpacing = 5;
- config.inputBoxWidth = 33;
- config.inputBoxHeight = 28;
- config.tintColor = [UIColor blackColor];
- config.secureTextEntry = YES;
- config.inputBoxColor = [UIColor brownColor];
- config.font = [UIFont boldSystemFontOfSize:16];
- config.textColor = [UIColor brownColor];
- config.inputType = JHVCConfigInputType_Number_Alphabet; // Default
- [self.view addSubview:({
- JHVerificationCodeView *codeView =
- [[JHVerificationCodeView alloc] initWithFrame:CGRectMake(10, 100, kScreenWidth-20, 30)
- config:config];
- codeView.finishBlock = ^(NSString *code) {
- label.text = code;
- };
- codeView;
- })];
复制代码
仓库地址:
https://github.com/xjh093/JHVerificationCodeView