How to change keyboard background color in iOS?
I would like to know how to change the keyboard background color programmatically in iOS? The background is normally grey but I have already seen black background (behind letters). A-Live For the dark background use: mytextfield.keyboardAppearance = UIKeyboardAppearanceAlert; Read to find more information about UITextInputTraits (use UIKeyboardAppearanceDark at iOS 7+). To change it globally, you can use appearance proxy in AppDelegate... I've tested it in iOS 8, Swift: UITextField.appearance().keyboardAppearance = .Dark Mr. T In iOS 7, UIKeyboardAppearanceAlert is deprecated, so use this