问题
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?
回答1:
textfield.keyboardAppearance = UIKeyboardAppearanceDark;
回答2:
in Swift 3:
textfield.keyboardAppearance = UIKeyboardAppearance.dark
回答3:
For anyone else that finds this question from google, you can also make the keyboard dark from the storyboard as well.
来源:https://stackoverflow.com/questions/19272441/change-between-dark-and-light-keyboard-ios7