Answer the question
In order to leave comments, you need to log in
How to restrict character input in UITextfield?
I give the dictionary application and I need to prohibit entering the text field of the word in Russian!
How can I do that?
Answer the question
In order to leave comments, you need to log in
UITextField provides a wonderful delegate method - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string - which is great for validating input. And for the check itself, it’s more convenient for me to use the regular expression - stackoverflow.com/questions/15392031/uitextfield-t...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question