How to make UIKeyboard black?

I saw this SO question here: Can I shade the (black) UIKeyboard? If so, how? , where the main answer tells you that you can hack, but it can make your application reject Apple. This should not be true, since I saw other iPhone apps (the main ones being Clear) that have a black UIKeyboard. How it's done?

Clear screenshot for reference:

enter image description here

+4
source share
3 answers

try it

[(UITextField *)mySubView setKeyboardAppearance:UIKeyboardAppearanceAlert]; 

or just add setKeyboardAppearance:UIKeyboardAppearanceAlert accordingly depending on how you configured it!

+10
source

Is this the style [textView setKeyboardAppearance:UIKeyboardAppearanceAlert]; ? Otherwise, as indicated. This is not possible without hacking podcasts. Of course, you can still customize your own complete input file.

+4
source

Starting with iOS 7, you can use UIKeyboardAppearanceDark

So for example:

 self.textField.keyboardAppearance = UIKeyboardAppearanceDark 
+3
source

Source: https://habr.com/ru/post/1400480/


All Articles