Force English keyboard on textfields

Viewed 569

I am developing an app that supports English and Arabic languages without problem. To sign up, I need the user to always have the keyboard in English even though he has it in Arabic, otherwise our backend won't understand the arabic characters. How can I enforce that?

2 Answers

Yes this should work for you...

Specifies a keyboard that displays standard ASCII characters.

textField.keyboardType = .asciiCapable

Hope it resolves your issue.

You can try the following:

textField.keyboardType = .asciiCapable

I just tried it on a simulator with Arabic as the language, and that only has the Arabic keyboard.

Related