JJCPayCodeTextField
JJCPayCodeTextField copied to clipboard
用MMNumberKeyboard 自定义键盘的时候,输入不了。
-
(UITextField *)textField { if (!_textField) {
_textField = [[JJCTextField alloc] initWithFrame:self.bounds]; _textField.backgroundColor = [UIColor clearColor]; _textField.delegate = self; _textField.textColor = [UIColor clearColor]; _textField.tintColor = [UIColor clearColor];
// _textField.keyboardType = UIKeyboardTypeASCIICapable; [self addSubview:_textField]; MMNumberKeyboard *keyboard = [[MMNumberKeyboard alloc] initWithFrame:CGRectZero]; _textField.inputView = keyboard; } return _textField; }