niks
niks

Reputation: 554

Custom black colored keyboard for iphone application

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

Answers (1)

jrturton
jrturton

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

Related Questions