简体   繁体   中英

Change between dark and light keyboard iOS7

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? 黑暗的键盘轻键盘

textfield.keyboardAppearance = UIKeyboardAppearanceDark;

在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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM