Pablo Pablo - 7 months ago 54
iOS Question

Objective C - Iphone. How can I show the numeric keyboard by default?

I'm trying the following with no luck. When the user click on a UiTextfield i need to change the keyboard view to the numeric view automatically, is this possible?
Thanks in advance.


The UITextInputTraits protocol (which UITextField conforms to) has a keyboardType property of type UIKeyboardType.

myTextField.keyboardType = UIKeyboardTypeNumberPad;