搜索激活后,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];