I have a textfield that I want to set a limit, not the digit value, but numerical (numeric keypad). For example, if my limit is 59 and I press 6, all other numbers you should disable. Do you think it possible?
Thanks a lot!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. Its not possible to disable the keys in the keyboard. You have to write your logic to prevent certain text to be entered in the text field.
You would probably have to write your code inside
textField:shouldChangeCharacterInRange:method.