Latest 0.0.2
Homepage https://github.com/mark1225/QLVertificationCodeInputView
License MIT
Platforms ios 9.0
Authors

验证码输入框
使用说明

@property (nonatomic, strong) QLVertificationCodeInputView *vertificationCodeInputView;

  • (void)viewDidLoad {
    [super viewDidLoad];
    [self.view addSubview:self.vertificationCodeInputView];
    self.view.backgroundColor = RGBAColor(77, 176, 24, 1);
    self.vertificationCodeInputView.block = ^(UITextField *textField){

    };
    }

  • (QLVertificationCodeInputView *)vertificationCodeInputView{
    if (!_vertificationCodeInputView) {
    _vertificationCodeInputView = [[QLVertificationCodeInputView alloc]initWithFrame:CGRectMake(30, 100, 300, 100)];
    _vertificationCodeInputView.spacing = 10;
    _vertificationCodeInputView.numberOfVertificationCode = 4;
    _vertificationCodeInputView.backgroundColor = [UIColor clearColor];
    {//框
    //// 默认为框 需要设置边框颜色 (圆角可选,填充颜色)
    // _vertificationCodeInputView.inputType = InpuViewTypeDefault;
    // _vertificationCodeInputView.lineWidth = 3;
    // _vertificationCodeInputView.cornerRadius = 5;
    //// 没有内容时背景色
    // _vertificationCodeInputView.fillColor = RGBAColor(255, 255, 255, 0.5);
    //// 有内容时背景色
    // _vertificationCodeInputView.h_fillColor = RGBAColor(255, 255, 255, 1);
    // _vertificationCodeInputView.borderColor = [UIColor redColor];
    }

        {
        _vertificationCodeInputView.inputType = InpuViewTypeLine;
        //            没有内容时下划线颜色
        _vertificationCodeInputView.fillColor = RGBAColor(255, 255, 255, 0.5);
        //            有内容时下划线颜色
        _vertificationCodeInputView.h_fillColor = RGBAColor(255, 255, 255, 1);
        }
    }

    return _vertificationCodeInputView;
    }

Latest podspec

{
    "name": "QLVertificationCodeInputView",
    "version": "0.0.2",
    "summary": "u9a8cu8bc1u7801u8f93u5165u6846",
    "description": "u9a8cu8bc1u7801u8f93u5165u6846uff0cu652fu6301u6846u548cu4e0bu5212u7ebfu4e24u79cdu65b9u5f0f",
    "homepage": "https://github.com/mark1225/QLVertificationCodeInputView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "qilong": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/mark1225/QLVertificationCodeInputView.git",
        "tag": "0.0.2"
    },
    "source_files": "QLVertificationCodeInputView/QLVertificationCodeInputView/QLVertificationCodeInputView/*.{h,m}"
}

Pin It on Pinterest

Share This