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?
Change between dark and light keyboard iOS7
textfield.keyboardAppearance = UIKeyboardAppearanceDark;
in Swift 3:
textfield.keyboardAppearance = UIKeyboardAppearance.dark
textfield.keyboardAppearance = .dark –
Salmanazar
Works in Swift 4, too. Add to view did load or someplace similar. –
Kemppe
For anyone else that finds this question from google, you can also make the keyboard dark from the storyboard as well.
© 2022 - 2024 — McMap. All rights reserved.