Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcjbird/quicksecuritycode
A security or sms verify code input control. 一个安全码/短信验证码输入控件,支持4位或6位数字的安全码/短信验证码。
https://github.com/pcjbird/quicksecuritycode
code input mobile phone security sms textfield verify
Last synced: 2 days ago
JSON representation
A security or sms verify code input control. 一个安全码/短信验证码输入控件,支持4位或6位数字的安全码/短信验证码。
- Host: GitHub
- URL: https://github.com/pcjbird/quicksecuritycode
- Owner: pcjbird
- License: mit
- Created: 2018-03-31T13:45:28.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-16T01:32:22.000Z (about 6 years ago)
- Last Synced: 2024-12-16T21:49:36.878Z (21 days ago)
- Topics: code, input, mobile, phone, security, sms, textfield, verify
- Language: Objective-C
- Homepage:
- Size: 357 KB
- Stars: 15
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![logo](logo.png)
[![Build Status](http://img.shields.io/travis/pcjbird/QuickSecurityCode/master.svg?style=flat)](https://travis-ci.org/pcjbird/QuickSecurityCode)
[![Pod Version](http://img.shields.io/cocoapods/v/QuickSecurityCode.svg?style=flat)](http://cocoadocs.org/docsets/QuickSecurityCode/)
[![Pod Platform](http://img.shields.io/cocoapods/p/QuickSecurityCode.svg?style=flat)](http://cocoadocs.org/docsets/QuickSecurityCode/)
[![Pod License](http://img.shields.io/cocoapods/l/QuickSecurityCode.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)
[![CocoaPods](https://img.shields.io/cocoapods/at/QuickSecurityCode.svg)](https://github.com/pcjbird/QuickSecurityCode)
[![CocoaPods](https://img.shields.io/cocoapods/dt/QuickSecurityCode.svg)](https://github.com/pcjbird/QuickSecurityCode)
[![GitHub release](https://img.shields.io/github/release/pcjbird/QuickSecurityCode.svg)](https://github.com/pcjbird/QuickSecurityCode/releases)
[![GitHub release](https://img.shields.io/github/release-date/pcjbird/QuickSecurityCode.svg)](https://github.com/pcjbird/QuickSecurityCode/releases)
[![Website](https://img.shields.io/website-pcjbird-down-green-red/https/shields.io.svg?label=author)](https://pcjbird.github.io)# QuickSecurityCode
### A security or sms verify code input control. 一个安全码/短信验证码输入控件,支持4位或6位数字的安全码/短信验证码。## 特性 / Features
1. 支持4位或6位的安全码/验证码。
2. 设置设置边框颜色,数字字体及颜色。
3. 支持 xib, storyboard。
4. 支持用下划线替代边框模式。## 演示 / Demo
## 安装 / Installation
方法一:`QuickSecurityCode` is available through CocoaPods. To install it, simply add the following line to your Podfile:
```
pod 'QuickSecurityCode'
```
## 使用 / Usage
```
#import@interface ViewController ()
@property (weak, nonatomic) IBOutlet QuickSecurityCode *securityCodeCtrl1;
@property (weak, nonatomic) IBOutlet QuickSecurityCode *securityCodeCtrl2;
@property (weak, nonatomic) IBOutlet QuickSecurityCode *securityCodeCtrl3;
@end@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.securityCodeCtrl1.digitFont = [UIFont boldSystemFontOfSize:18.0f];
self.securityCodeCtrl1.complete = ^(NSString *code) {
NSLog(@"SecurityCodeCtrl1: %@", code);
};self.securityCodeCtrl2.complete = ^(NSString *code) {
NSLog(@"SecurityCodeCtrl2: %@", code);
};
self.securityCodeCtrl3.digitFont = [UIFont boldSystemFontOfSize:18.0f];
self.securityCodeCtrl3.complete = ^(NSString *code) {
NSLog(@"SecurityCodeCtrl3: %@", code);
};
}@end
```
## 关注我们 / Follow us
[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/QuickSecurityCode)
[![Twitter Follow](https://img.shields.io/twitter/follow/pcjbird.svg?style=social)](https://twitter.com/pcjbird)