Reputation: 554
I am currently working on an iphone app where I want to change default backgroundcolor of keyboard to black.Can anyone provide me sample example/code for implementing the same.
Thanks in advance.
Upvotes: 0
Views: 1278
Reputation: 119242
Set the keyboardAppearance
property of the text field to UIKeyboardAppearanceAlert
. This gives a black background.
As of iOS7 you can use UIKeyboardAppearanceDark
as well.
Upvotes: 10