Password-keyboard:随机变换数字位置的密码键盘

时间:2021-06-10 11:37:39
【文件属性】:
文件名称:Password-keyboard:随机变换数字位置的密码键盘
文件大小:312KB
文件格式:ZIP
更新时间:2021-06-10 11:37:39
Objective-C Password-keyboard 随机变换数字位置的密码键盘。 模仿银行类应用在付款时输入的随机密码键盘。 使用步骤 1.将UIViewExtension与CustomKeyboard文件导入项目。 2.导入自定义键盘头文件 #import "LVKeyboardView.h" 3.需要两个属性 @property (nonatomic, strong) LVKeyboardView *keyboard; @property (nonatomic, strong) NSMutableString *passWord; 4.设置需要输入密码的textField self.textField.inputAccessoryView = [[LVKeyboardAccessoryBtn alloc] init]; self.textField.inputView = self.keyboard;

网友评论