数学输入的自定义键盘

时间:2013-03-25 12:34:49

标签: ios

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

1 个答案:

答案 0 :(得分: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;

根据您的要求进行设置。