Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change between dark and light keyboard iOS7

In iOS7 we have both a dark and a light keyboard. Is it possible for me to change between these in my app by code?Dark keyboardLight keyboard

like image 537
jalmaas Avatar asked Oct 09 '13 12:10

jalmaas


People also ask

How do you change your iPhone Keyboard from black to color?

Setting the Keyboard to Dark Mode Enabling the Dark mode is a complete no brainer. Launch the Setting app, swipe down, and select Display & Brightness. The first option that pops up is Light and Dark, tap on Dark and voila – the iPhone keyboard turns dark grey with white letters.

How do I get my iPhone Keyboard back to normal?

Go to Settings > Accessibility > Keyboards, tap Full Keyboard Access, then turn on Full Keyboard Access.


2 Answers

textfield.keyboardAppearance = UIKeyboardAppearanceDark;
like image 146
RickiG Avatar answered Oct 19 '22 05:10

RickiG


in Swift 3:

textfield.keyboardAppearance = UIKeyboardAppearance.dark
like image 28
pesch Avatar answered Oct 19 '22 05:10

pesch