Numeric keypad on iPad?

Is it possible to display a keyboard consisting only of numbers from 0 to 9 on the iPad? I donโ€™t want the keyboard to display anything else. I know that there is this KeyboardType: Number Pad , which we can in the .xib file, but it displays all the other additional characters, including numbers. I want to use this concept to display a keyboard for entering a PIN code for my iPad application I'm working on. Thanks you

+5
source share
2 answers

You need to implement your own keyboard if you want this on an iPad.

There are many examples:

https://github.com/azu/NumericKeypad

https://github.com/lnafziger/Numberpad

https://github.com/benzado/HSNumericField

+4
source

You can search for: UIKeyboardTypeDecimalPad , which displays numbers and decimal point.

This is a useful resource: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITextInputTraits_Protocol/index.html#//apple_ref/c/tdef/UIKeyboardType

0
source

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


All Articles