适用于ipad的UIKeyboardTypeDecimalPad

时间:2013-08-14 11:09:49

标签: ipad ios6 uikeyboardtype

对于iPad应用程序,我想将键盘类型从默认更改为UIKeyboardTypeDecimalPad。但它只显示我的默认值。我正在使用iOS 6

1 个答案:

答案 0 :(得分:2)

对于您的UITextfield,请在代码中使用它:

myTextField.keyboardType=UIKeyboardTypeDecimalPad;

在iOS 5.1或6.1 iPad中,只有这些键盘可用:

  • UIKeyboardTypeASCIICapable
  • UIKeyboardTypeNumbersAndPunctuation
  • UIKeyboardTypeURL
  • UIKeyboardTypeNumberPad
  • UIKeyboardTypeNamePhonePad
  • UIKeyboardTypeEmailAddress
  • UIKeyboardTypeTwitter