The question pretty much says it all. Is there any way to have the iOS/iPhone keyboard default to numeric input?
Try this: When entering numbers from the numbers keyboard, and you wish to insert a space, simply press the ABC key, and SLIDE your finger onto the space bar. When you lift your finger, a space will have been inserted, and you will remain in the numerical keyboard.
Set the keyboardType
property of the UITextField
to UIKeyboardTypeDecimalPad
.
yourUITextField.keyboardType = .decimalPad
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With