3

可能重复:
iPad 上的 UIKeyboardTypeNumberPad

我想为用户提供仅输入数字的选项。iPad 的数字键盘会弹出其他符号等。是否可以在 iPad 应用程序中获取 iPhone 版本的数字键盘?

4

1 回答 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 回答