How to change the background color of the keyboard programmatically in iPhone sdk?

16,387

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.

Share:
16,387
CKT
Author by

CKT

Senior iOS application developer

Updated on June 05, 2022

Comments

  • CKT
    CKT almost 2 years

    I want to change the background color of the keyboard when we are entering text in a textfield or textview. The default color is blue for the background. How can I change this to black?