UIAlertView: UIAlertViewStyleSecureTextInput: Numeric keyboard
ios, uialertview
Solution
You can try this to change the keyboard type of the `UIAlertView`'s field:
[[alert textFieldAtIndex:0] setDelegate:self];
[[alert textFieldAtIndex:0] setKeyboardType:UIKeyboardTypeNumberPad];
[[alert textFieldAtIndex:0] becomeFirstResponder];
Problem
I'm currently using this UIAlertView to do a login popup, ``` UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Restricted" message:@"Please Enter Code to Enable Fields" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Login" , nil]; alert.alertViewStyle = UIAlertViewStyleSecureTextInput; [alert show]; ``` However I would like the text input to be a numeric keyboard instead of the regular keyboard Is there a easy way to do this, or do I have to look into creating a custom UIAleartView