Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 Keyboard theme switching

Tags:

ios

uikeyboard

Is there a way to build an app to switch between the light and dark keyboards in iOS 7 on the fly, in-app?

Example: I'd like to make a writing app that can switch between 'Dark' and 'Light' themes. The keyboard should be the default white/light grey appearance for the Light theme, and the black/dark grey scheme for the Dark theme. The two different themes can be simply toggled via an in-app option.

Possible?

(Please forgive me if this is a stupid/super-obvious question. I'm not a programmer, but I want to hire one to build my ideas for iOS apps. I just want to be sure I'm making requests that are actually possible, and could not find an answer to my specific question via the search here or google. Thanks!)

like image 411
CTgreen Avatar asked Dec 16 '25 18:12

CTgreen


1 Answers

Just use this:

[textField setKeyboardAppearance:UIKeyboardAppearanceDark]; //Alert/Default/Dark/Light
[textField reloadInputViews];
like image 165
rebello95 Avatar answered Dec 19 '25 07:12

rebello95



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!