New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
怎么设置小数点只能输入后两位 #50
Comments
|
@jiangyongjian sorry, I can only provide support if you write this in English (or Spanish!). |
How to set the decimal point can only input the last two digits |
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string; Can we expose a method similar to this |
Hey @jiangyongjian! You can implement that functionality by adopting the - (BOOL)numberKeyboard:(MMNumberKeyboard *)numberKeyboard shouldInsertText:(NSString *)text; You’ll notice the method is very similar to the one you are mentioning from So, if you’re using an Hope it helps! |
thanks |
怎么设置小数点只能输入后两位
The text was updated successfully, but these errors were encountered: