CRBoxInputView
CRBoxInputView copied to clipboard
Verify code input view. Support security type for password.短信验证码输入框,支持密文模式
` lazy var boxView : CRBoxInputView = { let view = CRBoxInputView.init(codeLength: 6) // let cellProperty = CRBoxInputCellProperty() // cellProperty.cellBorderColorNormal = .clear // cellProperty.cellBorderColorSelected = .colorWithHexString(ThemeMainColor) // cellProperty.cellBorderColorFilled = .clear...
哪个大佬有swift使用的demo啊 初学者只会swift 跪求
https://github.com/CRAnimation/CRBoxInputView/blob/5e45530ed234ceffd4f7b2b1b2c5a2b08b2a7ed8/PodCode/Classes/CRBoxInputView.h#L163 实现并未看到 `return nil` 的处理,为何返回实例标记为 `_Nullable`
#### 问题: #### 修复后:
大佬您好,首先感谢你早的轮子,然后就是我想问一下,如果想实现这种效果的话除了是不是需要自己画线?可以通过api设置成这种样式么😂,如果有的话请指教,谢谢大佬! ![image](https://user-images.githubusercontent.com/12947653/145784360-cb069895-d607-4afd-b211-4a43600c3bb0.png)
问题描述 收到短信验证码之后点击填充,只会将验证码最后一位填充进输入框 CRBoxInputView.m - (void)textDidChange:(UITextField *)textField NSString *subStr = [verStr substringWithRange:NSMakeRange(verStr.length - 1, 1)]; [self->_valueArr addObject:subStr]; [self delaySecurityProcess]; 自动填充的字符串是一长串。所以我看这里的逻辑应该只是一个一个写的 我扫尾调整了下 能适应项目 for (int i = (int)self->_oldLength; i < verStr.length; i...