How do I specify that my keyboard for the UIAlertView
text field is to be a number pad keyboard? I am setting alertViewStyle
to UIAlertViewStylePlainTextInput
.
I think you can do something like:
UITextField* tf = [alertView textFieldAtIndex:0];
tf.keyboardType = UIKeyboardTypeNumberPad;
See the UIAlertView and UITextInputTraits docs
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