如何使用小数分隔符获取数字键盘?目前我被UIKeyboardNumberPad困住了.
你可以试试这个
UIKeyboardTypeDecimalPad
typedef enum { UIKeyboardTypeDefault, UIKeyboardTypeASCIICapable, UIKeyboardTypeNumbersAndPunctuation, UIKeyboardTypeURL, UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, UIKeyboardTypeNamePhonePad, UIKeyboardTypeEmailAddress, UIKeyboardTypeDecimalPad, UIKeyboardTypeTwitter, UIKeyboardTypeWebSearch, UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable // Deprecated } UIKeyboardType;
如果您不喜欢这些,您可以随时在代码中修改它们...
http://openradar.appspot.com/6635276
这有一个解决方案:http: //www.iphonedevsdk.com/forum/iphone-sdk-development/6573-howto-customize-uikeyboard.html