[英]Is there a way to observe a change between Dark and Light mode on iOS using Notifications instead of the standard Delegate function?
[英]Change between dark and light keyboard iOS7
在iOS7中,我們有黑暗和輕巧的鍵盤。 我可以通過代碼在我的應用程序之間進行更改嗎?
textfield.keyboardAppearance = UIKeyboardAppearanceDark;
在Swift 3中:
textfield.keyboardAppearance = UIKeyboardAppearance.dark
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.