我尝试显示系统黑暗键盘,代码为:
self.keyboardAppearance = UIKeyboardAppearanceDark;
第一次,当键出现时,颜色与另一个普通系统暗键盘一样暗,然后这个键盘的颜色改变,变得比普通的暗键盘更亮。 任何人都可以帮助我吗?
答案 0 :(得分:0)
如果您想在整个应用中设置此功能,请使用 AppDelegate <ul class="detailsec">
<li class="maindetail"><input class="search" name="search" type="text" value="" placeholder="Search"></li>
<li class="maindetail"><input border="0" title="Login" type="submit" value="LOGIN" class="button">
<ul>
<li class="subdetail"><a href="">Individuals<div class="arrow_menunav"></div></a></li>
<li class="subdetail"><a href="">Reg Type (ROB/ ROC/ UENO)<div class="arrow_menunav"></div></a></li>
<li class="subdetail lastrow"><a href="">Reg Type (Others)<div class="arrow_menunav"></div></a></li>
</ul>
</li>
</ul>
对于TextFields:
didFinishLaunchingWithOptions:
对于TextViews:
[[UITextField appearance] setKeyboardAppearance:UIKeyboardAppearanceDark];