I have to display a number pad as keyboard for a textfield (it can take only numerals) in case of ipad.setting keyboard type as UIKeyboardTypeNumberPad displays numeric keyboard but user can switch back to alphabets.Is there any keyboard for ipad that just displays numbers?
Is there some other way.I mean we can disable the button that switches to alphabet.I have no idea creating own keyboard
sherry
2010-10-22 12:40:42
It is not wise to alter the built-in keyboard, as this would severely decrease your chances of approval by Apple's review team.
Evan Mulawski
2010-10-22 12:44:21
As far as I think, I need to check ascii value for text entered by the user
sherry
2010-10-22 12:46:47
The best way to do this is to provide the user with the default numerical keyboard, and then verify that each entered character is a digit. You could use the valueChanged method of the UITextField to check this and remove that character.
Evan Mulawski
2010-10-22 12:49:50
ok.will give try this out
sherry
2010-10-22 13:06:55