Вопрос

Possible Duplicate:
UIKeyboardTypeNumberPad on iPad

I want to give users the option of only inputting numbers. The number pad for iPad pops up with other symbols etc. Is it possible to get the iPhone version of the number pad in an iPad app?

Это было полезно?

Решение

Unfortunately, this is not possible. You can only use the UIKeyboardTypeNumberPad to get the numbers on an iPad, and the letters and symbols are not locked out. If you really need this, I would recommend looking up tutorials about making custom keyboards and using NSMutableStrings. This way, you can create your own keyboard and experience, and still have the same number pad as the iPhone.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top