Latest 1.0.2
Homepage https://github.com/LeonLeeboy/LBPasswordInputView
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation
Authors

辛辛苦苦点进来。 ~ 那就给个星星吧~

Author

Leon-Lee

Usage

//这套代码做的事多个section ,每个section里面有又有多个item,类似UITableView,通过model即可配置UI 和数据,如需修改UI,LBDropDownItemView.m 里面可以修改。
NSMutableArray *groupModels = @[].mutableCopy;
for (int i = 0; i < 5; i ++) {
NSMutableArray *dropDownItemArray = [NSMutableArray array];
for (int j = 0; j < 4; j++) {
LBDropDownItem *item = [[LBDropDownItem alloc] init];
item.content = [NSString stringWithFormat:@"%d",i];
[dropDownItemArray addObject:item];
}

LBDropDownGroupNameModel *groupModel = [LBDropDownGroupNameModel modelWithDropDownItems:dropDownItemArray];
groupModel.content = @"title";
[groupModels addObject:groupModel];
}

LBDropDownModel *model = [LBDropDownModel modelWithLBDropDownGroupNameModel:groupModels];
LBDropDownView *dropDownView = [LBDropDownView dropDownViewWithModel:model];
[self.view addSubview:dropDownView];
//    [dropDownView mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(v);
//        make.top.equalTo(v.mas_bottom).with.offset(10);
//        make.width.mas_equalTo(200);
//        make.height.mas_equalTo(100);
//    }];
dropDownView.frame = CGRectMake(10, 74, 200, 100);
dropDownView.delegate = self;

Latest podspec

{
    "name": "LBPasswordInputView",
    "version": "1.0.2",
    "summary": "like alipay passWord page,when input password",
    "description": "we can use it ,when our project needs password textfield",
    "homepage": "https://github.com/LeonLeeboy/LBPasswordInputView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeonLeeboy/LBPasswordInputView.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LBPasswordInputView/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This