In iOS 5 I wish to have a text field for a user’s name. It would be good to have a keyboard that displays only letters and numbers (and maybe 1 punctuation character, or maybe just letters). Perhaps characters not allowed to be used could be greyed out.
Is this functionality possible? Or is there a better way to do it?
Thank you 🙂
You have a
method in
UITextFieldDelegateprotocol. If you’ll return NO the change will not be accepted thus leaving text as it was before last input. So basically you just need to implement your acceptance logic inside.Hope it helps.