Number keyboard in iPad?

前端 未结 2 1606
天涯浪人
天涯浪人 2020-12-06 17:25

Is it possible to display keyboard consisting of only numbers from 0-9 in iPad?, i don\'t want the keyboard to display anything else. I know there is this KeyboardTy

相关标签:
2条回答
  • 2020-12-06 18:17

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

    There are many examples out there:

    https://github.com/azu/NumericKeypad

    https://github.com/lnafziger/Numberpad

    https://github.com/benzado/HSNumericField

    0 讨论(0)
  • 2020-12-06 18:26

    You may be looking for: UIKeyboardTypeDecimalPad which will display numbers and a 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 讨论(0)
提交回复
热议问题