Skip to content

一个密码输入控件,仿微信支付的密码输入框,很高的可定制性

License

Notifications You must be signed in to change notification settings

Shulin-Zhang/SLPasswordInputView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SLPasswordInputView

代理:

  • -(void)passwordInputView:(SLPasswordInputView *)inputView willBeginInputWithPassword:(NSString *)password;
  • -(void)passwordInputView:(SLPasswordInputView *)inputView willEndInputWithPassword:(NSString *)password;
  • -(void)passwordInputView:(SLPasswordInputView *)inputView didChangeInputWithPassword:(NSString *)password;
  • -(void)passwordInputView:(SLPasswordInputView *)inputView didFinishInputWithPassword:(NSString *)password;

属性

  • 密码长度
  • @property (assign, nonatomic) NSUInteger passwordLength;
  • 密码字符大小
  • @property (assign, nonatomic) CGFloat passwordWidth;
  • 密码字符颜色(只在使用默认密码字符图片时有效
  • @property (strong, nonatomic) UIColor *passwordColor;
  • 密码字符图片(正方形图片,默认为黑色圆点)
  • @property (strong, nonatomic) UIImage *passwordImage;
  • 显示边框
  • @property (assign, nonatomic) BOOL showBorder;
  • 边框圆角大小
  • @property (assign, nonatomic) CGFloat borderCornerRadius;
  • 边框线宽
  • @property (assign, nonatomic) CGFloat borderWidth;
  • 边框颜色
  • @property (strong, nonatomic) UIColor *borderColor;
  • 键盘类型
  • @property (assign, nonatomic) UIKeyboardType keyboardType;
  • 返回按钮类型
  • @property (assign, nonatomic) UIReturnKeyType returnKeyType;
  • 密码文本
  • @property (copy, nonatomic, nullable) NSString *passwordText;
  • 内边距
  • @property (assign, nonatomic) UIEdgeInsets contentInsets;

picture

About

一个密码输入控件,仿微信支付的密码输入框,很高的可定制性

Resources

License

Stars

Watchers

Forks

Packages

No packages published