我想为用户提供仅输入数字的选项。iPad 的数字键盘会弹出其他符号等。是否可以在 iPad 应用程序中获取 iPhone 版本的数字键盘?
问问题
6558 次
1 回答
5
Unfortunately, this is not possible. You can only use the UIKeyboardTypeNumberPad to get the numbers on an iPad, and the letters and symbols are not locked out. If you really need this, I would recommend looking up tutorials about making custom keyboards and using NSMutableStrings. This way, you can create your own keyboard and experience, and still have the same number pad as the iPhone.
于 2011-10-21T01:53:05.873 回答