Skip to content

Latest commit

 

History

History
46 lines (29 loc) · 1.16 KB

File metadata and controls

46 lines (29 loc) · 1.16 KB

BMTextField

CI Status Version License Platform

截图

说明

[textField2 setVerifyText:^BOOL(NSString * _Nonnull text, UILabel * _Nonnull errorLabel) {
        errorLabel.text = @"密码必须大于10位";
        if (text.length >10) {
            return YES;
        }else{
            return NO;
        }
    }];

验证可自定义errorLabel, 但内部处理好隐藏显示

安装

BMTextField is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BMTextField'

Author

birdmichael, birdmichael126@gmail.com

License

BMTextField is available under the MIT license. See the LICENSE file for more info.