Change between dark and light keyboard iOS7

三世轮回 提交于 2020-01-01 04:10:13

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!