tags:

views:

22

answers:

1

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?

A: 

You would have to create your own keyboard to accomplish this.

Evan Mulawski
Is there some other way.I mean we can disable the button that switches to alphabet.I have no idea creating own keyboard
sherry
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
As far as I think, I need to check ascii value for text entered by the user
sherry
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
ok.will give try this out
sherry