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