0

如何显示只有数字和典型数学符号的键盘:括号、运算符(+,*,/,-,^)等。我正在寻找与 iOS 上的标准键盘具有相同外观和感觉的东西,可以移动、取消停靠和拆分. 我可能可以在 UIView 中使用按钮,但感觉与通常的键盘不同。

4

1 回答 1

0

UIKeyboardType

The type of keyboard to display for a given text-based view.

typedef enum {
   UIKeyboardTypeDefault,
   UIKeyboardTypeASCIICapable,
   UIKeyboardTypeNumbersAndPunctuation,
   UIKeyboardTypeURL,
   UIKeyboardTypeNumberPad,
   UIKeyboardTypePhonePad,
   UIKeyboardTypeNamePhonePad,
   UIKeyboardTypeEmailAddress,
   UIKeyboardTypeDecimalPad,
   UIKeyboardTypeTwitter,
   UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable
} UIKeyboardType;

根据您的要求进行设置。

于 2013-03-25T12:38:43.423 回答