iPad 上的数字键盘? [英] Number keyboard in iPad?
问题描述
是否可以在 iPad 中显示仅包含 0-9 数字的键盘?,我不希望键盘显示任何其他内容.我知道我们可以在 .xib 文件中使用这个 KeyboardType:Number Pad,但它会显示所有其他额外字符,包括数字.我想使用这个概念来为我正在处理的 iPad 应用程序显示用于 PIN 登录的键盘.谢谢
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 KeyboardType:Number Pad that we can in the .xib file, but it displays all other extra characters including numbers. I want to use this concept in displaying keyboard for PIN login for my iPad application that I'm working on. Thank you
推荐答案
如果你想在 iPad 上使用它,你需要实现自己的键盘.
You need to implement your own keyboard if you want this on iPad.
有很多例子:
https://github.com/azu/NumericKeypad
https://github.com/lnafziger/Numberpad
https://github.com/benzado/HSNumericField
这篇关于iPad 上的数字键盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!