1

I would like to change the keyboard style. I have attached two pictures one the current situation and the second one is the desired situation.

This image is of current keyboard style.

This is desired keyboard style.

Pathak Ayush
  • 726
  • 12
  • 24

3 Answers3

4

try this to change the keyboard type:

self.someTextField.keyboardType = UIKeyboardType.decimalPad

and for number with special character try this :-

UIKeyboardType.numbersAndPunctuation

from :- https://developer.apple.com/documentation/uikit/uitextinputtraits#//apple_ref/c/tdef/UIKeyboardType

Shivam Parmar
  • 1,520
  • 11
  • 27
1

well thanks for suggetions and answers .

i found the solution for it.

for the numbers

textField.keyboardType = UIKeyboardType.numbersAndPunctuation

for the alphabets

textField.keyboardType = UIKeyboardType.emailAddress
Pathak Ayush
  • 726
  • 12
  • 24
-1

enter image description here - Keyboard Type Suggestions

textField.keyboardType = .emailAddress

After = . (Multiple Suggestions for keyboard type you can select according to your usage)

rahul
  • 61
  • 2