UIKitToolOC 0.2.8

UIKitToolOC 0.2.8

[kenan] 维护。



UIKitToolOC

CI Status Version License Platform

示例

要运行示例项目,请克隆仓库,然后首先从 Example 目录中运行 pod install

需求

安装

UIKNToolOC 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中即可

pod 'UIKitToolOC'

用法

TextSwitch TextSwitch是 TextSwitch否 TextSwitch Masonry

TextSwitch *textSwitch  = [[TextSwitch alloc] init];
textSwitch.style = SwitchStyleNoBorder;
textSwitch.onTintColor = [UIColor colorWithRed:0/255.0 green:102/255.0 blue:255/255.0 alpha:1.0];
textSwitch.tintColor = [UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:1.0];
textSwitch.thumbTintColor = [UIColor whiteColor];
textSwitch.onText = @"是";
textSwitch.offText = @"否";
textSwitch.textFont = [UIFont systemFontOfSize:14 weight:(UIFontWeightRegular)];
[textSwitch addTarget:self action:@selector(handleSwitchEvent:) forControlEvents:UIControlEventValueChanged];
[self.view addSubview:textSwitch];
[textSwitch mas_makeConstraints:^(MASConstraintMaker *make) {
    make.center.equalTo(self.view);
    make.size.mas_equalTo(CGSizeMake(67, 32));
}];

- (void)handleSwitchEvent:(TextSwitch *)sender{
    
}

TextSwitch 框架

TextSwitch *textSwitch  = [[TextSwitch alloc] initWithFrame:CGRectMake(0, 0, 67, 32)];

IDCardTextField 身份证键盘

- (IDCardTextField *)idCardTextField {
    if (!_idCardTextField) {
        _idCardTextField = [[IDCardTextField alloc] init];
    }
    
    return _idNumberTextField;
}

作者

kenan, [email protected]

许可证

UIKNToolOC 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。