سؤال

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 keyboard Light keyboard

هل كانت مفيدة؟

المحلول

textfield.keyboardAppearance = UIKeyboardAppearanceDark;

نصائح أخرى

in Swift 3:

textfield.keyboardAppearance = UIKeyboardAppearance.dark

For anyone else that finds this question from google, you can also make the keyboard dark from the storyboard as well.

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top