Skip to content

Commit

Permalink
多语言支持&增加滑块配置接口
Browse files Browse the repository at this point in the history
  • Loading branch information
xk committed Aug 14, 2018
1 parent 8a69daf commit 734f3db
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 1 deletion.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,20 @@
#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, NTESVerifyCodeLang) {
// 中文
NTESVerifyCodeLangCN = 1,
// 英文
NTESVerifyCodeLangEN,
// 繁体
NTESVerifyCodeLangTW,
// 日文
NTESVerifyCodeLangJP,
// 韩文
NTESVerifyCodeLangKR,
// 泰文
NTESVerifyCodeLangTL,
// 越南语
NTESVerifyCodeLangVT,
};

@protocol NTESVerifyCodeManagerDelegate<NSObject>
Expand Down Expand Up @@ -80,11 +92,31 @@ typedef NS_ENUM(NSInteger, NTESVerifyCodeLang) {
/**
* @abstract 验证码语言选项
*
* @说明 验证码枚举类型NTESVerifyCodeLang,NTESVerifyCodeLangCN表示中文,NTESVerifyCodeLangEN表示英文
* @说明 验证码枚举类型NTESVerifyCodeLang,可选范围见枚举定义。
* 不传默认中文。
*/
@property(nonatomic) NTESVerifyCodeLang lang;

/**
* @abstract 验证码滑块icon url,不传则使用易盾默认滑块显示。
*/
@property(nonatomic) NSString *slideIconURL;

/**
* @abstract 验证码验证成功的滑块icon url,不传则使用易盾默认滑块显示。
*/
@property(nonatomic) NSString *slideIconSuccessURL;

/**
* @abstract 验证码滑块滑动过程中的icon url,不传则使用易盾默认滑块显示。
*/
@property(nonatomic) NSString *slideIconMovingURL;

/**
* @abstract 验证码验证失败的滑块icon url,不传则使用易盾默认滑块显示。
*/
@property(nonatomic) NSString *slideIconErrorURL;


/**
* @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.

0 comments on commit 734f3db

Please sign in to comment.