Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can keyboard of type UIKeyboardTypeNamePhonePad be made to start in phone mode?

Is there some way to have a keyboard of type UIKeyboardTypeNamePhonePad start in phone number pad mode rather than alphabetic? The keyboard works well for what I need but I'd like it to start in the "other" mode since that is more likely what the user will enter.

like image 664
CBGrey Avatar asked Mar 22 '10 03:03

CBGrey


1 Answers

I believe that by setting the keyboardType property to UIKeyboardTypeNumbersAndPunctuation, you will default to the numbers and punctuation view, while still having the option of returning to the "ABC" view. Apple's documentation on it: http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextInputTraits_Protocol/Reference/UITextInputTraits.html

Related question: how to show numbers in the default keyboard initially for UITextField

like image 115
futurevilla216 Avatar answered Nov 01 '22 13:11

futurevilla216