UITextField with default numbers and keyboard

Created a UITextField for the Postal Code / ZIP field with the keyboard type UIKeyboardTypeDefault. I would like to use the default keyboard, but I want the numbers and characters to be displayed by default in the form of letters.

Apple does this when you enter addresses in Contacts.app.

Does anyone know how to achieve this?

+4
source share
2 answers

You want the keyboard type UIKeyboardTypeNumbersAndPunctuation .

+6
source

And an example code of what the performer21 said:

 UITextField* txt = [[UITextField alloc] init]; txt.keyboardType = UIKeyboardTypeNumbersAndPunctuation; 
+5
source

Source: https://habr.com/ru/post/1307742/


All Articles