How to change keyboard type for text box in Xcode

I created a text box in Xcode, not Interface Builder. In IB you can choose different types of keyboards. How can you do the same in Xcode?

+3
source share
2 answers

How about a property keyboardType?

+5
source

1) In xib, you can change by clicking the keyboard type as below

enter image description here

2) Programmatically, you can set using textField.keyboardType = UIKeyboardTypeNumbersAndPunctuation;

0
source

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


All Articles