Reputation: 31
I am working in very simple app in textfield. I make it Number Pad and I need NumberPad to be only English number the user cannot change to any language.
How to make Keyboard Type NumberPad restricted to be only English number in Xcode 9?
I am using Swift 4 in Xcode 9
Upvotes: 3
Views: 3634
Reputation: 677
Are you looking for
textfield.keyboardType = .asciiCapableNumberPad
?
Upvotes: 6