views:

1596

answers:

4

i want to change the background color of the keyboard when we are entering text in textfield or textview. the default color is blue...as background.... can i change the color to black????

+4  A: 

You can get a dark gray background if you set the Appearance of the Text Input Traits of the Text Field to Alert. You can do this in Interface Builder under the Text Field attributes in the inspector.

Unfortunately Apple only opens two Appearance styles for the keyboard to us 3rd party developers.

Brandon Bodnár
A: 

thank you bodnarbm..... i got it... now i am able to set the background color. thank you

chaitanya
This should not be a separate answer, but should be a comment on his answer. Also, you may want to mark his answer as accepted by clicking the little checkmark next to it.
Brad Larson
A: 

@Brandon Bodnár, i m not able to comment so i m posting it on "ANSWER".

i can change color of keyboard,through IB...its grt. but how can i change color programmatically?

looking for a quick reply.. regards shishir

shishir.bobby
finally got the solution...here[_textEditor setKeyboardAppearance:UIKeyboardAppearanceAlert];
shishir.bobby
A: 

If anyone was looking for how to do this for a search bar like i was see http://stackoverflow.com/questions/2705865/change-uisearchbar-keyboard-search-button-title

I would comment but i can't yet so posting as answer

Katbyte