I am using Xcode 5 for developing applications. I want to change the color of keyboard in iOS 7. I want a color like black or blue.
How can I change the color of keyboard in iOS 7?
Open the Settings app on your iPhone or iPad. Scroll down and tap Display & Brightness. Tap Dark under the Appearance section at the top.
You can only set the keyboard appearance to any of three listed below using the UIKeyboardAppearance
.
UIKeyboardAppearanceDefault // Corresponds to the UIKeyboardAppearanceLight
UIKeyboardAppearanceDark // Available in iOS 7.0 and later.
UIKeyboardAppearanceLight // Available in iOS 7.0 and later.
There is one more constant named UIKeyboardAppearanceAlert
but, that is now deprecated. You should use UIKeyboardAppearanceDark
instead.
You can't use any custom or undefined color. So, Use ...
myTextfield.keyboardAppearance = UIKeyboardAppearanceDark;
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