可以自定义密码框个数以及是否显示密码
/**
field样式
*/
self.PayField =[[PwdView
alloc]initWithFrame:CGRectMake(50, 100, 300, 50)withFieldNum:6 showPwd:YES];
[self.view addSubview:self.PayField];
self.PayField.delegate = self;
/**
* label样式
*/
self.PayLabel = [[PSWView alloc]initWithFrame:CGRectMake(50, 200, 300, 50) labelNum:6 showPSW:YES];
[self.view addSubview:self.PayLabel];
self.PayLabel.delegate = self;
地址:https://github.com/vicool/PayPasswordView
网友评论