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
  • 307,833
  • 40
  • 508
  • 550
Zizoo
  • 1,574
  • 5
  • 17
  • 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