I'm using a UIAlertView with LoginAndPasswordInput [message setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput];
The alertview color is the standard blue color, but the keyboard that pops up is black? How can I change this color from the keyboard?
See the keyboard color has nothing to do with the UIAlertView
. To change the color of the keyboard color you have 2 options.
For the Blue appearence.
textfield.keyboardType = UIKeyboardAppearanceDefault;
OR
For the black appearance.
textfield.keyboardType = UIKeyboardAppearanceAlert;
Answer : keyboardAppearance
Black Keyboard for UIAlertView
is a standard rule of Human Interface given by Apple as they mentioned UIKeyboardAppearanceAlert
with Black Color.
Why do you think it's not a good appearance ? However you can change the Color of your Keyboard to Blue with this :
mytextfield.keyboardAppearance = UIKeyboardAppearanceDefault;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.