Latest 0.0.3
Homepage https://github.com/mymirror/BSCodeInputView
License MIT
Platforms ios 8.0
Dependencies Masonry
Authors

BSCodeInputView inputView = [[BSCodeInputView alloc] initWithFrame:CGRectMake(MAIN_SCREEN_WIDTH_SCALE80, MAIN_SCREEN_HEIGHT_SCALE150, MAIN_SCREEN_WIDTH-MAIN_SCREEN_WIDTH_SCALE160, 50)];

inputView.maxCodelenth = 4;

inputView.codeSelectColor = HEXCOLOR(0xf85032);

inputView.unSelectColor = HEXCOLOR(0x333333);

inputView.inputFont = KFont(38);

[inputView initCreateCodeInput];
inputView.codeBlock = ^(NSString *codeString) {
__weak typeof(self) weakSelf = self;
[weakSelf verifyCode:codeString];
};

[self.view addSubview:inputView];

BSCodeInputView的propertity使用一定要在initCreateCodeInput方法之前使用

Latest podspec

{
    "name": "BSCodeInputView",
    "version": "0.0.3",
    "summary": "A short use of BSCodeInputView.",
    "description": "A short description of BSCodeInputView . With such as usage",
    "homepage": "https://github.com/mymirror/BSCodeInputView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "mirror": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/mymirror/BSCodeInputView.git",
        "tag": "0.0.3"
    },
    "source_files": "BSCodeInputView/BSCodeInputView/*.{h,m}",
    "dependencies": {
        "Masonry": []
    }
}

Pin It on Pinterest

Share This