Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change keyboard background color in iOS?

I would like to know how to change the keyboard background color programmatically in iOS? The background is normally grey but I have already seen black background (behind letters).

like image 777
Matthieu Lucas Avatar asked Mar 15 '12 22:03

Matthieu Lucas


People also ask

Can you change your keyboard background on IOS?

Change how your keyboard looks On your iPhone or iPad, open the Gboard app. . Tap Gboard. Themes.

How do you change keyboard color on IOS?

Open the Settings app on your iPhone or iPad. Scroll down and tap Display & Brightness. Tap Dark under the Appearance section at the top.

How do I change my iPhone keyboard to dark?

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.


Video Answer


1 Answers

For the dark background use:

mytextfield.keyboardAppearance = UIKeyboardAppearanceAlert; 

Read to find more information about UITextInputTraits (use UIKeyboardAppearanceDark at iOS 7+).

like image 66
A-Live Avatar answered Sep 22 '22 08:09

A-Live