Change keyboard hue color for UITextField

I would like to set my own color for the keyboard associated with UITextField. I see that I can set UIKeyboardAppearanceType, but I would like to be able to set the color to an arbitrary color, and not just change to a different default value. I was hoping it would be as simple as something like this:

keyboard.tintColor = [UIColor colorWithRed: ...]

Any suggestions?

+5
source share
3 answers

There is no open API to access the system keyboard, so you are out of luck without rewriting UIKeyboard from scratch (this is a bad idea) or finding some kind of private API to do this work (which is a bad idea if you want to send it to the App Store).

+5

Alert . .

+1

In Xcode, find the “Keyboard Look” attribute in the “Text Input Options” section of the Attributes Inspector. Can switch between Light / Dark.

enter image description here

0
source

All Articles