用到LoginAndPasswordInput的UIAlertView
[message setAlertViewStyle:UIAlertViewStyleLoginAndPasswordInput];
alertview 的顏色是標准的藍色,但是彈出的鍵盤顏色是黑色,我想修改,怎麼改?
使用UITextfield 的keyboardAppearance 屬性來設置
typedef NS_ENUM(NSInteger, UIKeyboardAppearance) {
UIKeyboardAppearanceDefault, // Default apperance for the current input method.
UIKeyboardAppearanceAlert // Appearance suitable for use in "alert" scenarios.
};
textfield.keyboardAppearance = UIKeyboardAppearanceDefault;