iphone - UIKeyboardType NumberPad - 在 iPad 上仅显示数字?

标签 iphone cocoa-touch uikit ipad

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/

相关文章:

iphone - 删除 NSManagedObject "The operation couldn’ 后出错,无法完成”

objective-c - 您如何查看或操作您创建的 View 背后的代码?

swift - 无法从 View Controller 转到 Storyboard 引用?

ios - XCode 如何设置 UISlider.setMinimumTrackImage 进行裁剪,而不是缩放

ios - 如何从聚光灯搜索中启动该应用程序?

iphone - iOS:无法识别 subview 上的手势

ios - UITabBarController 内的 UINavigationController 在 iOS 6 中不会旋转

iphone - 强制加载/卸载 View

swift - Swift 中不同 View Controller 的不同 UIKeyCommand 数组

ios - 静态库 - 复制文件目标