Skip to content

Commit

Permalink
验证码添加中英文配置入口
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuke3 committed Apr 9, 2018
1 parent 87de170 commit 3b5fa8e
Show file tree
Hide file tree
Showing 15 changed files with 29 additions and 0 deletions.
Binary file modified Demo/VerifyCodeDemo/.DS_Store
Binary file not shown.
Binary file modified Demo/VerifyCodeDemo/VerifyCodeDemo/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, NTESVerifyCodeLang) {
NTESVerifyCodeLangCN = 1,
NTESVerifyCodeLangEN,
};

@protocol NTESVerifyCodeManagerDelegate<NSObject>
@optional

Expand Down Expand Up @@ -72,6 +77,14 @@
*/
@property(nonatomic) CGFloat alpha;

/**
* @abstract 验证码语言选项
*
* @说明 验证码枚举类型NTESVerifyCodeLang,NTESVerifyCodeLangCN表示中文,NTESVerifyCodeLangCN表示英文
* 不传默认中文。
*/
@property(nonatomic) NTESVerifyCodeLang lang;


/**
* @abstract 单例
Expand Down
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions Demo/VerifyCodeDemo/VerifyCodeDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ - (IBAction)openView:(id)sender {
NSString *captchaid = @"a05f036b70ab447b87cc788af9a60974";
[self.manager configureVerifyCode:captchaid timeout:10.0];

// 设置语言
self.manager.lang = NTESVerifyCodeLangCN;

// 设置透明度
self.manager.alpha = 0.7;

Expand Down
Binary file modified Release/.DS_Store
Binary file not shown.
Binary file not shown.
Binary file modified Release/VerifyCode iOS SDK/sdk/.DS_Store
Binary file not shown.
Binary file modified Release/VerifyCode iOS SDK/sdk/VerifyCode.framework/.DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, NTESVerifyCodeLang) {
NTESVerifyCodeLangCN = 1,
NTESVerifyCodeLangEN,
};

@protocol NTESVerifyCodeManagerDelegate<NSObject>
@optional

Expand Down Expand Up @@ -72,6 +77,14 @@
*/
@property(nonatomic) CGFloat alpha;

/**
* @abstract 验证码语言选项
*
* @说明 验证码枚举类型NTESVerifyCodeLang,NTESVerifyCodeLangCN表示中文,NTESVerifyCodeLangCN表示英文
* 不传默认中文。
*/
@property(nonatomic) NTESVerifyCodeLang lang;


/**
* @abstract 单例
Expand Down
Binary file modified Release/VerifyCode iOS SDK/sdk/VerifyCode.framework/Info.plist
Binary file not shown.
Binary file modified Release/VerifyCode iOS SDK/sdk/VerifyCode.framework/VerifyCode
Binary file not shown.
Binary file modified screenshots/.DS_Store
Binary file not shown.

0 comments on commit 3b5fa8e

Please sign in to comment.