Skip to content

CharlinFeng/CorePasswordView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

image




仿支付宝密码视图 请关注信息公告牌


.Objective-C

.Xcode 7

.iOS 6及以上




框架说明

. 设计是多样化的。只有密码视图,一切无关按钮,逻辑全部剔除,给您一片纯净。
. 超级轻量级,快速集成。
. 使用简单,支持纯代码,支持xib及autolayout。



image




使用说明



####1.导入 直接拖拽CorePasswordView文件夹到您项目中直接当做普通view使用。

CorePasswordView *pv = [[CorePasswordView alloc] initWithFrame:CGRectMake(0, 40, 320, 50)];



####2. 主动显示键盘

[pv beginInput];



####3. 主动隐藏键盘

[pv endInput];



####4. 输满密码回调

pv.PasswordCompeleteBlock = ^(NSString *password){

    NSLog(@"%@", password);
    
};



####5. 清空密码

[pv clearPassword];



####6. 支持更改密码位数(默认就是6位)

pv.passwordLength = 4;

About

仿支付宝密码视图

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published