Latest 1.0.3
Homepage https://github.com/pcjbird/QuickSecurityCode
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit, CoreGraphics
Authors

logo
Build Status
Pod Version
Pod Platform
Pod License
CocoaPods
CocoaPods
GitHub release
GitHub release
Website

A security or sms verify code input control. 一个安全码/短信验证码输入控件,支持4位或6位数字的安全码/短信验证码。

特性 / Features

  1. 支持4位或6位的安全码/验证码。
  2. 设置设置边框颜色,数字字体及颜色。
  3. 支持 xib, storyboard。
  4. 支持用下划线替代边框模式。

演示 / Demo

QuickSecurityCode

安装 / Installation

方法一:QuickSecurityCode is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'QuickSecurityCode'

使用 / Usage

#import <QuickSecurityCode/QuickSecurityCode.h>

@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

  
  QuickSecurityCode
  
  Twitter URL
  Twitter Follow

Latest podspec

{
    "name": "QuickSecurityCode",
    "version": "1.0.3",
    "summary": "A security/verify code input control. u4e00u4e2a4u4f4du62166u4f4du6570u5b57u7684u5b89u5168u7801/u9a8cu8bc1u7801u8f93u5165u63a7u4ef6u3002",
    "description": "A security/verify code input control. u4e00u4e2au5b89u5168u7801/u9a8cu8bc1u7801u8f93u5165u63a7u4ef6uff0cu652fu63014u4f4du62166u4f4du7684u5b89u5168u7801/u9a8cu8bc1u7801u3002",
    "homepage": "https://github.com/pcjbird/QuickSecurityCode",
    "license": "MIT",
    "authors": {
        "pcjbird": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pcjbird/QuickSecurityCode.git",
        "tag": "1.0.3"
    },
    "social_media_url": "http://www.lessney.com",
    "requires_arc": true,
    "documentation_url": "https://github.com/pcjbird/QuickSecurityCode/blob/master/README.md",
    "screenshots": "https://github.com/pcjbird/QuickSecurityCode/blob/master/logo.png",
    "platforms": {
        "ios": "8.0"
    },
    "frameworks": [
        "Foundation",
        "UIKit",
        "CoreGraphics"
    ],
    "source_files": "QuickSecurityCode/*.{h,m}",
    "public_header_files": "QuickSecurityCode/QuickSecurityCode.h",
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    }
}

Pin It on Pinterest

Share This