UIKeyboardTypeNumberPad 在 iPad 上不显示数字键盘。相反,它显示 UIKeyboardTypeNumbersAndPunctuation 键盘。
我是否遗漏了某些内容,或者该内容已从 iPad 操作系统中删除?
感谢您的指导!
最佳答案
我认为 iPad 上的 iPhoneOS 3.2 目前不支持此功能
引用 UITextInputTraits 头文件:
//
// UIKeyboardType
//
// Requests that a particular keyboard type be displayed when a text widget
// becomes first responder.
// Note: Some keyboard/input methods types may not support every variant.
// In such cases, the input method will make a best effort to find a close
// match to the requested type (e.g. displaying UIKeyboardTypeNumbersAndPunctuation
// type if UIKeyboardTypeNumberPad is not supported).
//
关于iphone - UIKeyboardType NumberPad - 在 iPad 上仅显示数字?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2597619/