开发者

Disable numbers and punctuation button on iphone keyboard

开发者 https://www.devze.com 2023-01-21 05:45 出处:网络
I have a UITextField that brings开发者_StackOverflow中文版 up the keyboard. I just want the user to input alphabets and not numbers or punctuation marks. How do I disable the numbers and punctuation k

I have a UITextField that brings开发者_StackOverflow中文版 up the keyboard. I just want the user to input alphabets and not numbers or punctuation marks. How do I disable the numbers and punctuation key on the default keyboard that pops up.

Thanks.

David


 Looking like you used the Default Keyboard....instead you can try to use:

 yourTextField.keyboardType = UIKeyboardTypeAlphabet;  This might solve your problem.

& if this doesn't solve your problem other way, is:

----> You need to create the Custom Keypad as per your requirement.

0

精彩评论

暂无评论...
验证码 换一张
取 消