搜索激活后,IOS7状态栏变为黑色 [英] IOS7 Status bar change to black after search is active
本文介绍了搜索激活后,IOS7状态栏变为黑色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用UISearchBar作为UITableView的标头。 UISearchBar样式是UISearchBarStyleMinimal。当搜索处于活动状态时,状态栏会变为黑色。如何解决?
I'm using UISearchBar as header of UITableView. UISearchBar style is UISearchBarStyleMinimal. And when search is active, status bar change to black. How to fix that?
在搜索激活之前
搜索已激活
推荐答案
你只需要这样做:
self.navigationController.view.backgroundColor = [UIColor lightGrayColor];
这篇关于搜索激活后,IOS7状态栏变为黑色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文