I have a textField object in an app for iPad. I would like to give the user a convenient keyboard for entering numbers. In my code, I added:
UITextField *textField = [[UITextField alloc] initWithFrame:frame]; textField.keyboardType = UIKeyboardTypeDecimalPad;
According to the docs, this is a valid keyboard type, but when I edit a text box, a regular ASCII keyboard appears. However, when I change it to:
textField.keyboardType = UIKeyboardTypePhonePad;
The keyboard looks like this: 
Ideally, I would like the keyboard to have only numbers and a decimal point, but is this impossible on the iPad? Does anyone have a definitive list of which keyboards work on iPhone vs iPad? Apple is unclear. I also saw this question , which is similar, but none of the answers touch my point.
Thanks!
Samantha john
source share