i tried many ways to change keyboard in ipad programmatically but it doesn't change at al开发者_运维百科l . i cant find any property in uitext for doing this.
any idea?
Unfortunately, you cannot control the language of the keyboard. The user chooses which keyboards they would like available via the settings application and can toggle between them using the globe icon on the keyboard. When the keyboard is opened it will open to the most recently used keyboard.
Here is what you need my friend,
[textView setKeyboardType:UIKeyboardTypeNumberPad];
[txtField setKeyboardType:UIKeyboardTypeNumberPad];
精彩评论