1

How to make UITextfield accept english litters and numbers only ? I found solutions but all in objective-c

how to do it in swift ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Zizoo
  • 1,694
  • 5
  • 20
  • 42
  • Select the text field and in attribute inspector change the keyboard type to Name and phone pad. Now you can enter only alphabets and numbers. – Shailesh Chandavar Oct 07 '16 at 19:23
  • @shaileshChandavar still I can type another languages !!! – Zizoo Oct 07 '16 at 19:26
  • @NazmulHasan You don't need permission to post an answer. If you have one, post it. – rmaddy Oct 07 '16 at 19:42
  • @Zizoo There are many Swift examples showing how to filter what can be typed into a text field. What exactly have you tried so far? What issue do you have? Update your question with relevant code. – rmaddy Oct 07 '16 at 19:43

0 Answers0